bd.selectNodes() will select all nodes inside the backdrop (bd.selectNodes(False) to deselect). Having to (potentially) store and clear your selection, call the .selectNodes method, grab nuke.selectedNodes(), and then restore your previous selection isn’t the most streamlined way of doing things, but short of the manual bounds-checking approach, I think it’s all there is at this point.
-Nathan From: adamchryDTS Sent: Wednesday, February 29, 2012 4:23 PM To: nuke-python@support.thefoundry.co.uk Subject: [Nuke-python] command for obtaining the contents of a backdropNode? Hi all, command for obtaining the contents of a backdropNode? I'm sure a group node has this feature but I'm being asked to use a backdropNode. I looked around the api and did some searches. I don't see a simple way to query a backdropNode for the nodes contained within it. Is this possible? I did some a post from a few years ago where someone just took the bounding box of the backdrop node and queried every node if it was within the location. Just looking to see if there was a newer better method. -------------------------------------------------------------------------------- _______________________________________________ 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