Created
July 14, 2016 17:10
-
-
Save greenvfx/82b1ef8194738e040304eb8b84390a4b to your computer and use it in GitHub Desktop.
This file contains 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, forceFloat = True) | |
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