save your python script to a .py file.. for example, if you created a script below that makes 10 nuke scripts with a NoOp node in them..

import nuke

for i in range(10):
   # clear all nodes from script
   for n in nuke.allNodes():
       nuke.delete(n)
# make a node
   node = nuke.createNode('NoOp')
# save the script
   nuke.scriptSaveAs('/tmp/script%d.nk' % i)


and saved it as "myscript.py", you'd launch it on the command line via:

% nuke -t myscript.py


which results in..

/tmp/script0.nk
/tmp/script1.nk
/tmp/script2.nk
/tmp/script3.nk
/tmp/script4.nk
/tmp/script5.nk
/tmp/script6.nk
/tmp/script7.nk
/tmp/script8.nk
/tmp/script9.nk


Vincent Langer wrote:
hi there,

i want to write a little script that creates a script from an edl file which consists of just one shot. a have over 60 of this edls and it would be nice to process all edls at ones

how can i create a lot scenes without the GUI poping up?

i used nuke.scriptNEW()
and there is a attribute nuke.GUI
but setting it to False does not work for me

or is there another better solution?

thanks and cheers,
Vincent

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
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

--
erik winquist
weta digital

_______________________________________________
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

Reply via email to