Hi Frank, Any other way to execute a Write node through terminal mode?
On Mon, Jun 22, 2015 at 1:15 PM Frank Harrison <[email protected]> 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 <[email protected]> > 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 < >> [email protected]> 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 >> [email protected], 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: [email protected] > _______________________________________________ > 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
