sceneReconstruct

Automatic reconstruction of 3d scenes in Nuke from exr metadata. It works together with helga.maya.rendering.setExrMetadata and can recreate:

  • Camera animation
  • Alembics with textures
  • Light setups

Note

The light reconstruction will try to find the best match for lights it doesnt know. For example a Vray Sunlight might translate to a directional light in Nuke. The mapping is far from complete and far from perfect though.

Please remember that this module only works, when exr metadata is set.


Usage

from helga.nuke.reconstruction.sceneReconstructVRay import sceneReconstruct
reload(sceneReconstruct)

#Create instance
sceneReconstructInstance = sceneReconstruct.SceneReconstruct()

#------------------------------
#Select some Nuke Read nodes
#------------------------------

#Reconstruct alembics
sceneReconstructInstance.reconstruct_alembic()

#Reconstruct exr cam
sceneReconstructInstance.create_exr_cam_vray()

#Reconstruct light
sceneReconstructInstance.reconstruct_light()

class helga.nuke.reconstruction.sceneReconstructVRay.sceneReconstruct.SceneReconstruct[source]
create_exr_cam_vray()[source]

Reconstruct a cam from a vray exr. ONLY works with vray exrs

nodetypeMatches(node, nodetype)[source]
reconstruct_alembic()[source]

Reconstruct Alembic nodes from read nodes with exr input file

reconstruct_light()[source]

Reconstruct Light nodes from read nodes with exr input file