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()