Last active
December 24, 2019 10:54
-
-
Save MitchellKehn/75e333c2b805ebdf73f9b329d60a75da to your computer and use it in GitHub Desktop.
[get nuke node parent] #nuke
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
node = nuke.thisNode() | |
nodeName = "root." + node.fullName() | |
parentName = ".".join(nodeName.split(".")[:-1]) | |
parent = nuke.toNode(parentName) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment