threading helps a lot.
http://docs.thefoundry.co.uk/nuke/70/pythondevguide/threading.html



I have noticed it is incredibly slow to create rotoshapes, anyone know how to speed it up?
Example: create a rotopaint node, select it and run this script to generate 100 shapes - can take up to 10s+! (faster if properties are closed).

import _curveknob

import time

x = time.time()

sn = nuke.selectedNode()

for i in range(100):

    y = _curveknob.Shape(sn["curves"], (10,10),(20,20),(30,10))

print str(time.time()-x), "seconds"


once they are created they are pretty quick to manipulate, its just the creation that is the problem.

G

--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■



--
Magno Borgo
Certified Nuke Trainer
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