If you run nuke.selectedNode() from within a menu command, it works as you'd expect (i.e returning the "active" selected node, which might be inside a group or not)

Whereas it acts differently if you run it from the script editor, where nuke.selectedNode() will always return the selected node in the root level DAG

On 23/09/15 07:37, Rich Bobo wrote:
Hi,

OK, I’ve tried, butI can’t figure this out…

I am inside a Group and looking at its DAG. I have a node selected. How
do I get that node object?

How do I get the scope for the current Group’s DAG…??  (8^\

Thanks for any help!

Rich



Rich Bobo
Senior VFX Compositor
Armstrong White
Email: rich.b...@armstrong-white.com <mailto:rich.b...@armstrong-white.com>
http://armstrong-white.com/

Email: richb...@mac.com <mailto:richb...@mac.com>
Mobile:  (248) 840-2665
Web: http://richbobo.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


--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
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