Skip to content

Instantly share code, notes, and snippets.

@boredstiff
Created January 15, 2015 02:35
Show Gist options
  • Save boredstiff/42d66486e5ac310c9b05 to your computer and use it in GitHub Desktop.
Save boredstiff/42d66486e5ac310c9b05 to your computer and use it in GitHub Desktop.
For Simon Unger
import maya.cmds as cmds
getaxis = cmds.upAxis(ax=True, q=True)
if getaxis == 'y':
cmds.upAxis(ax='z', rv=True)
elif getaxis == 'z':
cmds.upAxis(ax='y', rv=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment