[Nuke6] Import chan from script

Hello folks,
I’m working on a python script that imports cameras from a stereo maya scene.
It worked all well since I was using Nuke5, but now that I’ve upgraded to Nuke6 I have the following problem:

These lines used to work:

Code:

camera_lx.knob("import_chan").setValue("import_chan_file " + chan_path)
camera_lx.knob("import_chan").execute()
camera_lx.knob("import_chan").setValue("import_chan")


But… the "import_chan" knob on the Camera node is not working anymore!
Now it’s an "Obsolete_knob" and I can’t execute it.

To import a chan manually, I have to click on "file_menu" icon and then "import chan file".. But I don’t have any idea of how this can be done by script!

Can you guys help me?

Thanks in advance,

Dora

No Responses to “[Nuke6] Import chan from script”

Post a Comment