Oh, excellent. Thanks so much, Jake! On Fri, Jun 26, 2015 at 3:37 PM Jake Richards <[email protected]> wrote:
> Sure thing, this should do the trick: > > allNames = [ n.fullName() for n in nuke.allNodes(recurseGroups=True)] > > jake > > ------------------------------ > > *From: *"Fredrik Averpil" <[email protected]> > *To: *"Nuke user discussion" <[email protected]> > > *Sent: *Friday, June 26, 2015 9:26:47 AM > *Subject: *Re: [Nuke-users] How to get all nodes in script (including > groups)? > > > > That's excellent, thanks Jake. > > Can I get a "long" node name somehow? > Like for example, if I loop over nuke.allNodes(recurseGroups=True) I may > get Read1 several times, since Read1 may exist inside of groups. > > Is it possible to retrieve the names in such a fashion that the node name > is Group1.Read1 or something? > > Cheers, > Fredrik > > > On Fri, Jun 26, 2015 at 3:09 PM Jake Richards <[email protected]> > wrote: > >> This should find all the nodes, even inside groups: >> >> nuke.allNodes(recurseGroups=True) >> >> >> jake >> >> ------------------------------ >> >> *From: *"Fredrik Averpil" <[email protected]> >> *To: *"Nuke user discussion" <[email protected]> >> *Sent: *Friday, June 26, 2015 9:04:54 AM >> *Subject: *[Nuke-users] How to get all nodes in script (including >> groups)? >> >> >> >> Hey, >> >> I just noticed that nuke.root().nodes() does not return nodes within a >> group. What's the most reliable approach to do this? >> >> I'm doing this at the moment: >> >> all_nodes = nuke.root().nodes()for node in all_nodes: >> if node.Class() == 'Group': >> all_nodes = all_nodes + node.nodes() >> >> >> >> I'm on Nuke 9.0v6. >> >> Regards, >> Fredrik >> >> >> _______________________________________________ >> Nuke-users mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >> >> >> _______________________________________________ >> Nuke-users mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users > > > _______________________________________________ > Nuke-users mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users > > _______________________________________________ > Nuke-users mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
