Skip to content

Instantly share code, notes, and snippets.

@greenvfx
Created March 22, 2022 18:23
Show Gist options
  • Save greenvfx/1e21c511520e48533caf06ba0f455f3a to your computer and use it in GitHub Desktop.
Save greenvfx/1e21c511520e48533caf06ba0f455f3a to your computer and use it in GitHub Desktop.
a simple python based counter for Nuke
set cut_paste_input [stack 0]
version 12.2 v4
push $cut_paste_input
Text2 {
font_size_toolbar 100
font_width_toolbar 100
font_height_toolbar 100
message "\[python \{str(int(nuke.thisNode()\['counter'].value())).zfill(int(nuke.thisNode()\['padding'].value()))\}]"
old_message {{48 49 49}
}
old_expression_markers {{0 2}
}
box {0 1055 796 1556}
transforms {{0 2}
}
cursor_position 100
global_font_scale 5
center {1024 778}
cursor_initialised true
initial_cursor_position {{0 1556}
}
group_animations {{0} imported: 0 selected: items: "root transform/"}
animation_layers {{1 11 1024 778 0 0 1 1 0 0 0 0}
}
name CounterText1
selected true
xpos -162
ypos -146
addUserKnob {20 User}
addUserKnob {3 padding}
padding 3
addUserKnob {7 counter R 0 100}
counter {{curve x1 0 x51 24.5 x100 100}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment