Cloning a Camera by scripting

Hello everybody,
I’m working with Nuke 6.0v1 64bit and I’m developing a python script to set a stereoscopic scene.

I having trouble in cloning a Camera node with Python, using the method nuke.clone().
Nuke makes the new node but all knobs are not connected, so even if graphically the two nodes are cloned (with an orange arrow), in facts they’re not.

When I use the Alt+K command for cloning, it works (but of course I need my script does the job!).

I’m attaching a screenshot, where you can see this strange thing.

My code is:

Code:

camera1 = nuke.createNode("Camera")
camera2 =  nuke.clone(camera1)


What I’m doing wrong?

Thank you very much for your help!!

Attached Thumbnails

Click image for larger version

Name:	nuke_bug.jpg
Views:	N/A
Size:	103.3 KB
ID:	10106
 

No Responses to “Cloning a Camera by scripting”

Post a Comment