skip existing renders v2.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Jep Hill
Website: www.j3pnyc.com
v2.1 - This updates the default "render selected" behavior to render all write nodes in the selection and ignore the others (rather than fail). v 2.1 - Now works properly with EXRs when autocrop is selected. (Hat tip to Marty Blumen for finding this bug) v2.0 - Now adds very efficient and selective output directory verification and creation to interactive and background renders. v1.0 - "skip existing frames" functionality only works for interactive renders still however, the dialoge box behavior has been improved so it won't show as an option for background renders.
Requirements:
6.1, 6.2, 6.3 or later
Linux, Mac, Windows
25 Apr 2012
660

The v2.1 update features the following improvements:

  • Updated the default "Render Selected" bahaviour to render the write nodes in the group of selected nodes rather than just failing out with an error
  • Now works properly with EXRs when autocrop is selected. (hat tip to Marty Blumen for finding this bug)

This is an update to my modification of The Foundry's renderdialog.py script that adds a "skip existing" checkbox to the render dialog allowing users to skip existing frames when rendering interactively. This update removes the "skip existing frames" option from the render dialog when background rendering is selected. This also includes extremely efficient output directory verification and generation for both interactive and backgrounded renders. It only checks the path of the write node(s) selected to render, at render time.


The skip existing frames feature stil doesn't work with backgrounded renders due to the fact that the callback "addBeforeBackgroundFrameRender" is not yet exposed. There are definitely other ways to do solve the issue when background rendering, however, I figured I'd share this in case any one is interested in this funcionality in the interim.


Place the j3p_renderdialog.py script in your ~/.nuke ($HOME/.nuke) directory and add the follwing lines to your menu.py living in the same directory:

1
2
import j3p_renderdialog
nukescripts.showRenderDialog = j3p_renderdialog.showRenderDialog 

Please feel free to contact me with any questions or bugs -- feedback is welcome and encouraged.

Please login in order to download these files.

Comments   

 
0 # Prajakta Khatal 2011-07-06 23:47
Heyy Jep! This is a great script! I used it, n absolutely loved it! Thanks, n hope to see more coming from u.. :-)
 
 
0 # Jd Yepes 2011-07-19 15:43
Awesome Jep!!! Thank you.
 
 
0 # Marty Blumen 2012-04-18 14:44
Just tried it, unfortunately it overwrote every rendered frame with a blank frame. NukeX6.3v7 & AtomKraft. I'm sure I'm doing something wrong though.
 
 
0 # Jep Hill 2012-04-25 16:31
Thanks for the feedback Marty -- you have found a bug that happens when you are writing EXRs with Autocrop turned on -- I will have an update that fixes this soon!
 
 
0 # Randy Little 2014-07-10 01:48
This just saved my life. Rendering from a QT master to frames and I haev hundreds of missing frames in a movie 72000 frames long. I was losing my mind until I found this. It worked GREAT
 
 
0 # Mahmoud Youssef 2017-04-27 09:52
Grate Script it relay save me a lot of time

there is a small edits i have made to escape the temp files that comes with a random numbers like eps1_Shot_2_006.tga.10496.tmp

i have added a new variable

tmpFrameWithNum = currentFrame + ".*.tmp"

then add it to the cheeking step

os.path.exists(tmpFrame) or glob.glob(tmpFr ameWithNum)
 
 
+1 # Remco Consten 2018-07-04 11:24
Does anyone know how I could fix this script to work with nuke 11?

It seems to have an negative effect on the Write Render Dialog.
Error given:
showRenderDialog() takes at most 2 arguments (3 given)
 
 
0 # Osvaldo Andreaus 2018-12-18 17:55
So far the only work around I found was to select the write node and press F7.

Will explore more how the script work to see if it's possible to update for nuke 11.
 
 
+1 # Osvaldo Andreaus 2018-12-18 21:46
 
 
0 # Pål Gustav Widerberg 2019-04-03 13:34
This update works with nuke 11.3v2 , thank you!
 
 
0 # Max Steven 2021-06-21 08:48
Thank you so much
 
 
+6 # Alexander Kartsov 2021-10-28 19:04
It's not working with nuke 13.0v2 is it possible to update it. Thanks! :)
 

You have no rights to post comments

We have 2531 guests and 73 members online