Skip to content

Instantly share code, notes, and snippets.

@draconiansolo
Created July 31, 2013 11:21
Show Gist options
  • Save draconiansolo/6121217 to your computer and use it in GitHub Desktop.
Save draconiansolo/6121217 to your computer and use it in GitHub Desktop.
will expand all transforms read in the axis
set cut_paste_input [stack 0]
version 6.3 v8
push $cut_paste_input
NoOp {
name TransformExpander
tile_color 0x7f7272ff
selected true
xpos -2707
ypos -1042
addUserKnob {20 User}
addUserKnob {22 ExpandAxles T "node=nuke.toNode(nuke.thisNode().input(0).name())\nfor i in node.knob(\"Transform_name\").values():\n print i\n newNode = nuke.createNode(node.Class(), node.writeKnobs(nuke.WRITE_USER_KNOB_DEFS |nuke.WRITE_NON_DEFAULT_ONLY | nuke.TO_SCRIPT), inpanel=False) \n newNode.knob(\"Transform_name\").setValue(i)\n button=newNode.knob(\"makeKeyframed\")\n nuke.Script_Knob.execute(button)" +STARTLINE}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment