Hey there - 

does anyone know a way to turn off user prompts when node asks for them? In my 
particular instance, I'm trying to load an fbx file into a camera via python, 
then set some stuff up. 

cam = nuke.nodes.Camera2()
cam.showControlPanel()
cam['file'].setValue(fbxCameraPath)
cam['fbx_node_name'].setValue('shotCamera')

2 issues that I'd like to handle:

with a working fbx file, the above lines load the camera, but it requires 
accepting the camera dialog "Are you sure you want to read the camera from the 
file and destroy the current camera data?" It would be nice to skip that part!

The second issue is it seems that the camera doesn't actually get read unless 
the control panel is open. Comment out the showControlPanel function and 
setting the fbx_node_name fails.

Any tricks out there to help with these issues?
thanks
JRAB 
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to