Created
July 31, 2013 11:21
-
-
Save draconiansolo/6121217 to your computer and use it in GitHub Desktop.
will expand all transforms read in the axis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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