Hey there -

I'm trying to load an fbx file in a terminal session - trying to script an automatic process. I'm stumped at setting up my camera.

> nuke -t

fbxfile = '/path/to/fbxfile.fbx'
camera = nuke.createNode('Camera2')
camera['read_from_file'].setValue(True)
camera['file'].setValue(fbxfile)

doesn't load it, neither does

camera = nuke.createNode('Camera2', 'read_from_file true file %s' % fbxfile)

The file knob is set, but it's not loaded so I can't really do much after that. Any ideas?
Both of those work from the GUI, but the idea is to run this in a script.

Thanks
JRAB
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to