Beautiful. This solved my problem. Thank you for the insight! cheers, Brandon L. Harris
________________________________________ From: [email protected] [[email protected]] on behalf of Nathan Rusch [[email protected]] Sent: Monday, September 16, 2013 12:10 PM To: Nuke Python discussion Subject: Re: [Nuke-python] Loading ABC data in Camera nodes This is a longstanding annoyance stemming from how and when the Camera2 node loads and caches available node names. Basically, you need to make sure the node's control panel is shown at some point after setting the file knob, or the list of available values won't be updated. Also, in order to avoid the annoying pop-up confirmation dialog when replacing animation from a file, you need to make sure the `file` and `read_from_file` knobs are all set out of the gate: cam = nuke.createNode('Camera2', 'file {/path/to/some/file.abc} read_from_file True') cam.hideControlPanel() # Values list will be up to date here You can also use nuke.nodes.Camera2 if you prefer, but you then need to show the panel yourself using nuke.show() or cam.showControlPanel() -Nathan -----Original Message----- From: Brandon Harris Sent: Monday, September 16, 2013 9:02 AM To: Nuke Python discussion [[email protected]] Subject: [Nuke-python] Loading ABC data in Camera nodes I'm running a tool that creates Camera2 nodes and sets the node to read an alembic file. I believe the reading the alembic data is happening after the script has run so it's not possible for me to set the fbx_node_name knob since the shapes have not been populated in that knob. Is there a way to force the node to load the camera data so I can set the fbx_node_name knob? cheers, Brandon L. Harris _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ 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 _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
