stereoRig

Hi i trying to creat stereoRig in Nuke from imported Tracked camera are tracked inside the nuke.
i make it work but facing some issue’s, Here is my code….

Quote:

def stereoRig ():
a = nuke.toNode("selectedNode")
master = nuke.createNode(‘Axis’)
master[‘name’].setValue(‘master’)
left = nuke.createNode(‘Camera’)
left[‘name’].setValue(‘left’)
left.setInput(0, a)
right = nuke.createNode(‘Camera’)
right[‘name’].setValue(‘right’)
right.setInput(0, a)
left[‘translate’].setExpression(‘parent.Camera1.translate.left-parent.master.translate.left’)
left[‘rotate’].setExpression(‘parent.Camera1.rotate.left-parent.master.rotate.left’)
left[‘focal’].setExpression(‘parent.Camera1.focal’)
left[‘haperture’].setExpression(‘parent.Camera1.aperture.x’)
left[‘vaperture’].setExpression(‘parent.Camera1.aperture.y’)
right[‘translate’].setExpression(‘parent.Camera1.translate.left+pare nt.master.translate.left’)
right[‘rotate’].setExpression(‘parent.Camera1.rotate.left+parent. master.rotate.left’)
right[‘focal’].setExpression(‘parent.Camera1.focalLength’)
right[‘haperture’].setExpression(‘parent.Camera1.aperture.x’)
right[‘vaperture’].setExpression(‘parent.Camera1.aperture.y’)


Its work good in starting frames But my L&R camera will moved slightly mid and end of the frames. Is anyone correct this please.

Attached Files
File Type: nk stereoCam_test.nk (3.6 KB)
No Responses to “stereoRig”

Post a Comment