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
________________________________
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: Monday, October 21, 2013 2:01 PM
To: Nuke Python discussion
Subject: Re: [Nuke-python] RE: Working with ReadGeo node.

I think you want node['scene_view'].getSelectedItems()

-Nathan


From: Brandon Harris<mailto:brandon.har...@reelfx.com>
Sent: Monday, October 21, 2013 11:30 AM
To: Nuke Python discussion<mailto:nuke-python@support.thefoundry.co.uk>
Subject: [Nuke-python] RE: Working with ReadGeo node.

ctrl + enter got me, but here is my example.

I have a read geo node
node = nuke.nodes.ReadGeo(file='/path/to/file')
node['scene_view'].getAllItems()



['/root/geometry_GRP/trainstation_GRP/R_wall_GRP/frntWindow_GRP/Bot_Windowframe_REN/Bot_Windowframe_RENShape',
 
'/root/geometry_GRP/trainstation_GRP/R_wall_GRP/frntWindow_GRP/Bot_windowBar_REN/Bot_windowBar_RENShape',
 
'/root/geometry_GRP/trainstation_GRP/R_wall_GRP/frntWindow_GRP/L_windowFrame_REN/L_windowFrame_RENShape',
 
'/root/geometry_GRP/trainstation_GRP/R_wall_GRP/frntWindow_GRP/R_windowFrame_REN/R_windowFrame_RENShape']



now if i turn off everything I get the same result.

In the user guide it says that you add/remove items from the list via those 
yellow/grey controls on the right.



Thanks for your help!


cheers,
Brandon L. Harris
________________________________
From: nuke-python-boun...@support.thefoundry.co.uk 
[nuke-python-boun...@support.thefoundry.co.uk] on behalf of Brandon Harris 
[brandon.har...@reelfx.com]
Sent: Monday, October 21, 2013 1:23 PM
To: Nuke Python discussion ‎[nuke-python@support.thefoundry.co.uk]‎
Subject: [Nuke-python] Working with ReadGeo node.

Ok, so we are wanting a tool that can publish out whatever geometry is 
currently being pulled into the artist's script via a ReadGeo node.

We have found that the artists will turn off items they don't want brought in 
by turning off the little yellow knob next to the geometry item in the 
scene_view knob.  How do I get ahold of this information and how do I set it 
back?
Looking at the scene_view knob it only provides insight into what items are 
selected or are in the knob.  Anyone have a fancy way of grabbing this 
information from the knob?

so...

cheers,
Brandon L. Harris
[www.freebirdsmovie.com]<http://www.freebirdsmovie.com>
[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
[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

Reply via email to