Its hacky but heres what I came up with. It tests whether all the node(s) you have selected can connect to a DeepTransform node, which presumably means they are deep nodes:
nodes = nuke.selectedNodes() nukescripts.clear_selection_recursive() test = nuke.createNode('DeepTransform') for n in nodes: if not test.canSetInput(0, n): ret = False break else: ret = True nuke.delete(test) print ret If anyones got a better idea, I'd love to hear it. On Fri, Jun 13, 2014 at 12:24 PM, Nathan Rusch <nathan_ru...@hotmail.com> wrote: > Off the top of my head, I don’t think there’s anything incriminating > about deep nodes other than the fact that their class names start with > "Deep" (for now, at least). > > -Nathan > > > *From:* Anthony Kramer <anthony.kra...@gmail.com> > *Sent:* Friday, June 13, 2014 11:36 AM > *To:* Nuke Python discussion <nuke-python@support.thefoundry.co.uk> > *Subject:* [Nuke-python] Identify deep node with python > > Looking for a way with python to identify if the selected node(s) as > deep nodes. > > -ak > > ------------------------------ > _______________________________________________ > 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 > > > _______________________________________________ > 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 > >
_______________________________________________ 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