Rotopaint Layer objects are iterable and indexible like lists.

# Assuming n is your Rotopaint node
r = n['curves'].rootLayer
for item in r:
   print item.name

-Nathan

-----Original Message----- From: Nick Stevens
Sent: Saturday, March 26, 2011 11:25 AM
To: [email protected]
Subject: [Nuke-python] Listing all curves/elements in rotopaint

Does anyone know how to get a list of all the curves/elements (ie beziers) in a root/rotopaint node? I need to run the list through a loop.

Thanks,

Nick_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to