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

-Nathan



From: Brandon Harris 
Sent: Monday, October 21, 2013 11:30 AM
To: Nuke Python discussion 
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

 
 


--------------------------------------------------------------------------------
_______________________________________________
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
_______________________________________________
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