Skip to content

Instantly share code, notes, and snippets.

@kpprt
Created September 8, 2017 18:37
Show Gist options
  • Save kpprt/e521a7de4bede18a48a8bc866e054077 to your computer and use it in GitHub Desktop.
Save kpprt/e521a7de4bede18a48a8bc866e054077 to your computer and use it in GitHub Desktop.
A special workflow node for Nuke that shows the current version of the connected input in its label.
set cut_paste_input [stack 0]
version 10.5 v3
push $cut_paste_input
NoOp {
name Version1
knobChanged "if nuke.thisKnob().name() == 'inputChange':\n label = nuke.thisNode().knob('label')\n label.setValue(label.getValue())"
label "\[if \{\[exists \[topnode].file]\} \{return \[string range \[regexp -inline \"_v\\\[0-9]*\" \[value \[topnode].file]] 1 end]\} \{\}]"
note_font_size 50
selected true
xpos -810
ypos -5216
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment