Created
February 11, 2019 21:40
-
-
Save bohdon/3fd89b78d0a1bdeafad2ba5f8f651043 to your computer and use it in GitHub Desktop.
Maya - Show File in Explorer
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
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