Hi John,

Try:

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

You'll probably need to manually set the fbx_node_name knob to the actual
camera you want as well.

Hope that helps.

On Fri, Apr 20, 2012 at 10:12 AM, John RA Benson <
[email protected]> wrote:

> 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
> Nuke-python@support.**thefoundry.co.uk<[email protected]>,
> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-python<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
>
_______________________________________________
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