CmdLineRender v2.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Philippe HUBERDEAU
Python script to create windows Batch file that launches Nuke renders by command line
Requirements:
6.2, 6.3, 7.0 or later
Windows
24 Feb 2013
1683

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 .

ClrenderDialog2

 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())')

Please login in order to download these files.

Comments   

 
0 # Vincent Langer 2012-08-22 17:39
hi there - nice tool - but when i select multible writenodes to export - only one is executed
cheers,
vincent
 
 
+1 # Philippe HUBERDEAU 2012-08-24 04:44
Hi Vincent,
Thanks for the report, it's much appreciated. It's now fixed in the new 1.2 version.
cheers,
philhub
 
 
+1 # Sicard Cyrille 2012-09-10 01:36
Cool!
Without rendre farm, saved my nights!
 
 
0 # Martin Cutbill 2012-11-13 15:13
Sorry to ask what is probably a very straightforward question, but I'm getting:

Traceback (most recent call last):
File "C:/Users/Marti n/.nuke/menu.py ", line 9, in
m.addCommand('C L Render', 'CmdLineRender.CLrender(nuke.selectedNodes())')
NameError: name 'm' is not defined

What have I done wrong? The CmdLineRender.p y is also in the .Nuke dir.

Cheers.
 
 
0 # Philippe HUBERDEAU 2012-11-14 03:16
Hi Martin,
It's an omission from me, sorry for that. I put in my own menus and didn't written the whole thing to work straight.
But for a general purpose we can put it in the Render Menu, so the lines should be :

For example
m = nuke.menu("Nuke")
m.addCommand('Render/CL Render', 'CmdLineRender.CLrender(nuke.selectedNodes())')

Thanks for the report,
Cheers,
philhub
 
 
0 # Sanjeev Kumar 2012-12-11 08:17
what is the command to get all write nodes in the nuke script ?
 
 
+1 # Philippe HUBERDEAU 2012-12-11 10:03
Hi Sanjeev
you can add this line to have this behaviour :
m.addCommand('Render/CL Render ALL', 'CmdLineRender. CLrender(nuke.a llNodes('Write' ))')

Cheers
philhub
 
 
0 # Sanjeev Kumar 2012-12-11 10:09
well we need to run this script from within nuke , right ?
 
 
0 # Philippe HUBERDEAU 2012-12-11 10:12
it's meant to be written in your menu.py, so yes kind of within nuke.
 
 
0 # Vitaly Musatov 2013-01-11 05:13
Thanks! Useful tool!
 
 
0 # Travis Button 2013-02-16 20:25
Thanks a lot Philippe! Definitely useful when working on jobs from home and no renderfarm. Great work.
 
 
0 # panda rendermore 2013-02-22 06:47
Thanks alot for the script!!!! :-)
Where does the bat file save to btw?
Thanks
 
 
0 # Philippe HUBERDEAU 2013-02-22 07:22
Hello,
In the comp's folder !
 
 
0 # panda rendermore 2013-02-22 08:40
Thanks Philippe! cant believe i didnt think to check there.. feel stupid now.. lol
Thanks for the quick response. your a life saver... so much quicker with this script!!!
 
 
0 # Ryan Purnell 2013-05-16 19:14
Thanks. I like this and I like the batch file that shows up in the script folder. very handy.
 
 
0 # Paul Loop 2016-03-27 09:10
Still simple and handy tool. Really greatfull to the author!
 
 
0 # adam jones 2016-10-20 08:51
Hello

Is there a way to get it to render chunks rather than rendering a single file closing out nuke / reopening rendering a frame then closing out nuke / reopening nuke rendering a frame....
 
 
0 # Struts Alex 2017-05-28 00:56
Thanks Philippe! Useful tool! does not work "skip existing file"
 
 
0 # IDontWant ToRegister 2017-06-21 20:16
Seems to be broken with nuke 10.5v4
Skip existing file just reports an error
Regular rendering just hangs in there doing nothing.
 
 
0 # Dale Carman 2017-07-21 18:07
looking at the command string that it creates, I don't see where it is rendering every X frame.

with a regular nuke command line render you use -F 1-100x4 to render every 4th frame. When I have it split into multiple BAT files, I get
1-100
2-100
3-100
4-100
but I don't see it adding the x4 anywhere
 
 
0 # Dale Carman 2017-07-21 18:32
Also, sometimes, the bat files work and sometimes, I get this...

\Dale\Nuke\Dale\CmdLineRender.pyc was unexpected at this time.
 
 
0 # maria tortosa 2018-08-09 10:15
hi there! Although I have a "create a write directory if non existent" When I activate the command line it gave me the "can't write. No such directory" error.
 
 
0 # maria tortosa 2018-08-09 10:15
hi there! Although I have a "create a write directory if non existent" When I activate the command line it gave me the "can't write. No such directory" error.
 

You have no rights to post comments

We have 3926 guests and 119 members online