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

Reply via email to