Last active
July 14, 2016 16:37
-
-
Save greenvfx/beed0d860e9969c3a12010cee8e2a645 to your computer and use it in GitHub Desktop.
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
| def openBaseNode(): | |
| sn = nuke.selectedNode() | |
| for knob in sn.knobs(): | |
| if sn['%s'%knob].hasExpression(): | |
| expression = sn['%s'%knob].animation(0).expression() | |
| nodeName = expression.split('.') | |
| n = nuke.toNode('%s'%nodeName[1]) | |
| nuke.show(n) | |
| nuke.menu('Nuke').addCommand("Edit/Node/Open Base Node", "openBaseNode()", "Ctrl+Shift+o" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment