You could add your execution code in a python scrupt and run that. nuke -t <path to script.py>
------------------------------- Simon Björk Compositor/TD +46 (0)70-2859503 www.bjorkvisuals.com 2015-06-22 13:30 GMT+02:00 Fredrik Averpil <fredrik.aver...@gmail.com>: > Hi Frank, > > Any other way to execute a Write node through terminal mode? > > On Mon, Jun 22, 2015 at 1:15 PM Frank Harrison <fr...@thefoundry.co.uk> > wrote: > >> Yup, that function doesn't work in terminal mode and you should have >> gotten an exception being thrown. >> >> On 12 June 2015 at 14:12, Fredrik Averpil <fredrik.aver...@gmail.com> >> wrote: >> >>> Ahh.. it was supposed to be Nuke9.0.exe -V -x c:/tmp/myScript.py >>> >>> All good. Working now. :) >>> >>> On Fri, Jun 12, 2015 at 3:07 PM Fredrik Averpil < >>> fredrik.aver...@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> I've created a script which basically just changes the file format and >>>> at the end I want the script to render the new file: >>>> >>>> r = nuke.createNode("Read") >>>> r["file"].setValue("//10.10.10.100/prod/proj15/nuke/render/script3/script3_write2.0009.jpg")print >>>> "Read node:", r["file"].value() >>>> w = nuke.createNode("Write") >>>> w["file"].setValue("C:/tmp/script3_write2.0009.png")print "Write node:", >>>> w["file"].value() >>>> nuke.executeInMainThread(nuke.execute, args=w, >>>> kwargs={"continueOnError":False}) >>>> >>>> >>>> >>>> >>>> And I execute the script like this: >>>> >>>> Nuke9.0.exe -V -t c:/tmp/myScript.py >>>> >>>> >>>> ...but the script doesn't seem to manage to execute the render. When I >>>> copy paste the code inside of Nuke I can see that all nodes are being >>>> created fine but the render doesn't execute. >>>> >>>> >>>> Any ideas? >>>> >>>> >>>> >>>> Regards, >>>> >>>> Fredrik >>>> >>> >>> _______________________________________________ >>> 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 >>> >>> >> >> >> -- >> Frank Harrison >> Senior Nuke Software Engineer >> The Foundry >> Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 >> Web: www.thefoundry.co.uk >> Email: frank.harri...@thefoundry.co.uk >> _______________________________________________ >> 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 >> > > _______________________________________________ > 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 > >
_______________________________________________ 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