sweet! cut it down to .5s, thanks!
On Tue, Aug 6, 2013 at 7:15 PM, Magno Borgo <[email protected]> wrote: > ** > 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 > > -- ■ ■ ■ ■ ■ ■ ■ ■ ■ ■
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
