четверг, 10 июня 2010 г.

NUKE command line render

How to render with nuke from command line/terminal?
Answer is simple.

Just make simple script. Here's example:
Read1 - Reformat - Write

Put "/path/[argv 0].%07d.dpx" string in file field of your Read node.
This is your path into folder with DPX files and mysterious [argv 0] string, which tells NUKE filename from argument set in command line/terminal.

Next I use Reformat node to do some simple work in this example. Lets reformat DPX to PAL.)))

And finally, I add Write node with another file field string like "/path/output/[argv 0].#######.jpg". In this node i've changed path for output folder and use same argument [argv 0] for filename.

Save script. Close NUKE.

Last step is enter command:

nuke.exe -x my_script.nk myfilename 1,50

Nuke will execute my_script.nk created earlier, get myfilename and render 50 frames.

That's all.

Комментариев нет: