Oh, nuke.root().selectedNodes() did the trick!
On Thu Dec 11 2014 at 4:28:18 PM Fredrik Averpil <fredrik.aver...@gmail.com> wrote: > I'm creating a python script button in a NoOp node, but it always returns > itself as the selected node, even if I have other nodes selected when > clicking this script button. > > Just enter this as the code to be executed by the Python script button, > select some other node(s) and click it: > > print nuke.selectedNodes() > > > > Is there any way I can get those other selected nodes? > > Regards, > Fredrik >
_______________________________________________ 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