Skip to content

Instantly share code, notes, and snippets.

@fredrikaverpil
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredrikaverpil/9761370 to your computer and use it in GitHub Desktop.
Save fredrikaverpil/9761370 to your computer and use it in GitHub Desktop.
Get environment settings #nuke
# 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