CreateExrCam

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.

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:

  1. Put createExrCam.py into your plugin path
  2. Add the following into your menu.py file:
 
import createExrCam
nuke.menu( 'Nuke' ).addCommand( 'MatteHue/Create Camera from EXR', 'createExrCam.createExrCam()', 'ctrl+alt+c')

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.

Sign in or register to download or rate.