This should find all the nodes, even inside groups:
nuke.allNodes(recurseGroups=True)
jake
----- Original Message -----
| 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