Ziye Liu's Blog
  • ( www.ziyeliu.com )
  • Home
  • Visual Effects Blog
    • Houdini >
      • Procedural Courtyard House
      • Procedural Music Animation
    • Maya - MEL >
      • MEL Rooftop Generator
      • MEL Circle of Spheres
    • Maya - Rendering >
      • Maya Render Premultiply Issue
      • Depth of Field and Bokeh
      • 3D Render - Match to a Real Object
      • RenderMan I
      • RenderMan II
    • Python >
      • Python Sampler Quilt
      • Motion Capture Data Parsing
      • Python and Turtle Graphics
  • Themes & Variations
    • The Film
    • Scene 1 - "Crazy Polka Dots"
    • Scene 2 - “Untitled”
    • Scene 3 - "Grapes"
    • Scene 4 - “Narcissus Garden”
  • 中文博客

"WritePro" for Nuke

Brief Introduction
An expanded version of the built-in "Write" node in Nuke, with the ability to add version and label, and handle file path manipulation and file naming convention automatically.
May 24th, 2013
 

How to use it
  • Copy the code then paste it into Nuke's Node Graph.
  • Remember to specify your format as file extension in the naming area.

Release Note
v1.0
  • Basic function to manipulate file path and naming convention.
v1.1
  • Add function to preview the final output file path.
  • Add function to edit path format using a button.

Important Notice
This tool is currently in development, and it's not fully functional nor reliable. I'm not responsible for any damage caused by it. Please use it at your own risk.
More completed and reliable version will be released in the future.
Begin of the script v1.0

set cut_paste_input [stack 0]
version 6.3 v4
push $cut_paste_input
Write {
 file "\[value pathformat]_\[value nameformat]"
 first {{root.first_frame}}
 last {{root.last_frame}}
 use_limit true
 checkHashOnRead false
 version 7
 name WritePro
 tile_color 0x94c13fff
 note_font_size 15
 selected true
 xpos 1365
 ypos 170
 addUserKnob {20 writepro l "Write Pro™"}
 addUserKnob {1 pathformat l "Path Format"}
 pathformat "\[file rootname \[value root.name]]"
 addUserKnob {4 type l Type M {comp test pass breakdown cache}}
 addUserKnob {1 slash l "" -STARTLINE}
 slash _
 addUserKnob {3 version_1 l Version -STARTLINE}
 version_1 1
 addUserKnob {1 slash2 l "" -STARTLINE}
 slash2 _
 addUserKnob {1 description l Description -STARTLINE}
 description label
 addUserKnob {1 nameformat l "Name Format"}
 nameformat "\[value type]\[value slash]v\[value version_1]\[value slash2]\[value description]"
 addUserKnob {41 file_1 l file T WritePro.file}
 addUserKnob {41 Render_1 l Render T WritePro.Render}
}


End of the script v1.0
www.ziyeliu.com
Digital Art, 3D, Photography
©Ziye Liu, 2011 - 2023, All Rights Reserved