This will help you (Nuke7 , not sure if works on 6.3)

rotoNode = nuke.selectedNode()

rotoCurve = rotoNode['curves']

rotoWidget = rotoCurve.curveWidget

print rotoWidget.getSelectedItems()




Hey guys !

I'm currently finishing a nuke "tool" mimicking the technology used in Disney's Paperman and I'm stuck at - i guess - a simple step:

I'm trying to list the currently selected stroked in a Rotopaint node - the ones that get highlighted in the list when you click on them.
I'm doing this so the user can select a few strokes and run the tool only on them, while skipping the other ones.

If it is not possible (which i fear), do you guys have any idea on an alternate trick to succeed ?

Thank you !!



--
Magno Borgo
www.boundaryvfx.com
www.borgo.tv
Brasil:Curitiba:GMT= -3
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to