Python script to create windows Batch file that launches Nuke renders by command line
CmdLineRender
Updated: 25 February 2013
Author: philhub
Compatible Nuke versions: 6.2 or later
Compatibility: Windows
WINDOWS ONLY
Python script to create windows Batch file to launch Nuke renders by command line. It's less memory consuming
Plus some options like :
render "frame by frame" which allows to flush properly the memory for each frame. Some comps (same thing with Eyeon Fusion) tends to increase rendering time all along the process.
"skip existing frame" for deleted bug frames or deleted modified frames to avoid complicated frameranges.
it creates BAT executable files name like : "compName_WriteName_x1x450-525_FrameByFrame"
These scripts are inspired from Tim BOWMAN's "bgNukes" and Jep HILL's "skip existing renders" scripts .
to install add these lines to your menu.py
import CmdLineRender
menubar = nuke.menu('Nuke')
m = menubar.addMenu('Nukepedia')
m.addCommand('CL Render', 'CmdLineRender.CLrender(nuke.selectedNodes())')