Last active
August 29, 2015 13:57
-
-
Save fredrikaverpil/9761370 to your computer and use it in GitHub Desktop.
Get environment settings #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
# List Nuke's environment settings | |
print( nuke.root() ) | |
# Nuke script's filename | |
print( os.path.basename( nuke.root().name() ) ) | |
# Nuke script's directory | |
print( os.path.dirname( nuke.root().name() ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment