Have you thought about opening a .py file with the Nuke command line? It will simply execute it. I believe you can even read in the template file at the very beginning and end with a nuke.scriptSaveAs(location).

I use this to batch convert images etc. The whole script is built from scratch using python (from inside nuke).

Hilsen
Jimmy Christensen
Developer
Ghost A/S

On 01/12/15 17:38, Den Serras wrote:
Hi all,

Due to our pipeline, we have to create the Nuke file for the artist. We
currently create a template which is duplicated and moved into the
correct spot, but I'd prefer to do it more dynamically so every time I
push a change to the setup I don't have to generate a new file. I tried
launching the CLI and then saving the file, but none of my init scripts
that actually modify the file seem to be running in the CLI. Don't know
if I'm doing something wrong or this method won't work. Anyone have a
dynamic way to create a script, or are those who prebuild scripts always
using templates?

Thanks!
Den


_______________________________________________
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

Reply via email to