[n['selected'].setValue(True) for n in nuke.allNodes(recurseGroups=True,filter="Read")]
Although, there is a bug in at least nuke 10v1 where recurseGroups and filter don't work together (not sure if that's fixed in newer version though) but that code should select everything even in groups. Just change the Read to your class name. Good luck! ----- Original Message ----- | From: "Michael Hodges" <mhod...@morganfalls.com> | To: "Nuke user discussion" <nuke-users@support.thefoundry.co.uk> | Sent: Friday, February 10, 2017 12:32:33 PM | Subject: [Nuke-users] Selecting all nodes in a class | Is there a way to select all nodes in a class regardless of whether | they are in a group or not? | All the examples I see are either for selecting in root or within a | specific group. | I’d like to have a custom node (or class of nodes) that I can | universally select/execute on within any script they reside in | regardless of whether they are nested in groups or not. | Thanks!_______________________________________________ | Nuke-users mailing list | Nuke-users@support.thefoundry.co.uk, | https://urldefense.proofpoint.com/v2/url?u=http-3A__forums.thefoundry.co.uk_&d=DwIFaQ&c=hHkK43hKb5uKUGaYMJ-p252cFdfVBHtyegDvswk59fU&r=hdh6ldFziktt1N0wAi7bK3Mjov-6LjULd6ZgRd44U6s&m=pakHvxjLBBtglNUEj5x-eeIRf99lI44TSxTuZN8HIbM&s=7JY2D1ajIgVT37VJV5NIs-qfuxUOBWbqAaiDb2G-FlI&e= | https://urldefense.proofpoint.com/v2/url?u=http-3A__support.thefoundry.co.uk_cgi-2Dbin_mailman_listinfo_nuke-2Dusers&d=DwIFaQ&c=hHkK43hKb5uKUGaYMJ-p252cFdfVBHtyegDvswk59fU&r=hdh6ldFziktt1N0wAi7bK3Mjov-6LjULd6ZgRd44U6s&m=pakHvxjLBBtglNUEj5x-eeIRf99lI44TSxTuZN8HIbM&s=VWK2cdsmFLBCdGTUfFupt-j4bQXQVnm4esldmPw2_nw&e=
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users