This is awesome! Thanks! cheers, Brandon L. Harris ________________________________ From: nuke-python-boun...@support.thefoundry.co.uk [nuke-python-boun...@support.thefoundry.co.uk] on behalf of Nathan Rusch [nathan_ru...@hotmail.com] Sent: Thursday, November 07, 2013 5:06 PM To: Nuke Python discussion Subject: Re: [Nuke-python] RE: Working with ReadGeo node.
You can use node.readKnobs() to update the file path without firing the knobChanged callback: node.readKnobs('file {/path/to/new/file.abc}') k = node['scene_view'] items = k.getAllItems() k.setImportedItems(items) k.setSelectedItems(items) -Nathan From: Brandon Harris<mailto:brandon.har...@reelfx.com> Sent: Thursday, November 07, 2013 2:12 PM To: Nuke Python discussion<mailto:nuke-python@support.thefoundry.co.uk> Subject: RE: [Nuke-python] RE: Working with ReadGeo node. Your idea about doing the path changes after node copy is a really good idea. I think that's the solution I'll implement. cheers, Brandon L. Harris ________________________________ From: nuke-python-boun...@support.thefoundry.co.uk [nuke-python-boun...@support.thefoundry.co.uk] on behalf of Jordan O [jorxs...@gmail.com] Sent: Thursday, November 07, 2013 4:02 PM To: Nuke Python discussion Subject: Re: [Nuke-python] RE: Working with ReadGeo node. Hi Brandon, do you have an example of the code that pops up a UI when changing the path on a ReadGeo node? I can't recreate on my end. An alternative might be to copy the node as text / TCL (same as you would copy and paste a node into a text editor) and run alterations on the TCL? I've done it before but haven't got any example code handy- should be around here somewhere. cheers, Jordan On Fri, Nov 8, 2013 at 10:47 AM, Brandon Harris <brandon.har...@reelfx.com<mailto:brandon.har...@reelfx.com>> wrote: Reviving this to get more information. So I can get the selected items, but if I was to create a new node, how do I set it to load it as an all-in-one? What I'm attempting to do is take a setup created by an artist and publish the entirety of it as a package. so I take all the nodes with file paths, take their paths and copy the frames/geo to the published location, repoint the nodes to the new file paths, export the nodes to the publish location, and then repoint the paths back to where they where. This is an issue with the read geo nodes because they pop up a UI when changing the path. The solution in some cases is to just create a new node and pass file in as a kwarg. This won't work because it doesn't create an all-in-one node. Any insight into how to best accomplish this? cheers, Brandon L. Harris [www.freebirdsmovie.com]<http://www.freebirdsmovie.com>
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python