Python qu again…..

hey guys,,
how do i link via expression the translate values to two different cameras..
i am able to do it directly by copying the link on x translate and then pasting it on the x of the other camera.then say ….edit expression

but i want to write the python code for it…
whats to be the syntax for it…
a=nuke.selctedNode()
b=nuke.toNode(‘Camera2’)
cam1=a[‘translate’].value[0]
cam2=b[translate’].value[0]

now i want to link them via expression ..(multiply the value of cam2 by -1.so it moves in the reverse x direction to cam1.)

help…

No Responses to “Python qu again…..”

Post a Comment