Hi, I can't get my brain to figure this out, so I'm reaching out to the "collective brain"… 8^)
I need a collection of nodes, minus any connected Viewers. So, selNodes = nuke.selectedNodes() --- but without any Viewers that may be connected... I can do this: selNodes = nuke.selectedNodes() for node in selNodes: if node.Class() == 'Viewer': node["selected"].setValue(False) else: node['selected'].setValue(True) However, that does not change the original collection of nodes - it still has all of the nodes that were connected when I set the origin variable, including any Viewers. I want to *remove* any Viewer class nodes from the selNodes collection! I know it's probably simple, but it's been a long week… Any help? Thanks! Rich Rich Bobo Senior VFX Compositor Armstrong-White http://armstrong-white.com/ Email: richb...@mac.com Mobile: (248) 840-2665 Web: http://richbobo.com/ "Until one is committed, there is hesitancy, the chance to draw back ineffectiveness. Concerning all acts of initiative and creation, there is one elementary rule - the ignorance of which kills countless ideas and splendid plans; that the moment one definitely commits oneself, then Providence moves too. Things occur to help that would never otherwise have occurred. A whole stream of events issues from the choice, raising in one's favour all manner of unforeseen incidents and meetings and material assistance, which no man could have dreamed would have come his way." - Goethe
_______________________________________________ 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