Skip to content

Instantly share code, notes, and snippets.

@bohdon
Created February 11, 2019 21:40
Show Gist options
  • Save bohdon/3fd89b78d0a1bdeafad2ba5f8f651043 to your computer and use it in GitHub Desktop.
Save bohdon/3fd89b78d0a1bdeafad2ba5f8f651043 to your computer and use it in GitHub Desktop.
Maya - Show File in Explorer
import pymel.core as pm
import subprocess
sceneName = pm.sceneName()
if sceneName:
sceneName = str(sceneName.parent).replace('/', '\\')
subprocess.call(['explorer.exe', sceneName])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment