Creates a camera from an exr's metadata, assuming the up direction is the 'Z' axis (from programs such as 3ds Max). Also prevents MB artifacts from camera rotations.
CreateExrCam
Updated: 8 May 2016
Author: MatteHue
Compatible Nuke versions: 7.0 or later
Compatibility: Windows 32, Windows 64
Creates a camera from an exr's metadata. It is currently limited to exrs created from programs with an upwards z axis such as 3ds Max, Blender etc... If there is interest, I can update it to choose which method to use when creating the camera.
A useful feature of this script is that it prevents rotations from 'flipping' when crossing over a multiple of 360°. This prevents artifacts from any camera motion blur. Note that in extreme rotations where the camera 'flips' more than once between frames, it will be limited to one full rotation.
To install:
- Put createExrCam.py into your plugin path
- Add the following into your menu.py file:
|
import createExrCam
|
To use, select a Read node with the desired exr, and either select the menu option or use the hotkey: ctrl-alt-c
If anyone wants to learn how the code works, I go through a breakdown here. Enjoy.