I have a hacky trick for this. I search through all nodes with 
recurseGroups=True, then look for node.isSelected() and get the 
nose.fullName(). With that, you can nuke.toNode("full name") and even split the 
name and go to the groups themselves. It will give you false positives if you 
have other nodes selected, so you can run a setSelected(False) on all nodes 
before selecting the one you want.
Den






On Tue, Sep 22, 2015 at 4:00 PM -0700, "Igor Majdandzic" 
<subscripti...@badgerfx.com> wrote:










Select the group in root dag
n = nuke.selectedNode()
n.begin()
node  = nuke.selectednode()
n.end()

Cheers

Am 23.09.2015 12:07 vorm. schrieb Rich Bobo :
>
> 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
> http://armstrong-white.com/
>
> Email:  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

Reply via email to