Skip to content

Instantly share code, notes, and snippets.

@MattOstgard
Created August 31, 2020 14:20
Show Gist options
  • Save MattOstgard/48b8c53f49f101b000d67ee5dadd69ca to your computer and use it in GitHub Desktop.
Save MattOstgard/48b8c53f49f101b000d67ee5dadd69ca to your computer and use it in GitHub Desktop.
Python script to toggle Maya's up axis preferences between Y and Z. Paste in the python tab of the script editor and do File > Save Save Script To Shelf.
import maya.api.OpenMaya as om
if om.MGlobal.isZAxisUp():
om.MGlobal.setYAxisUp()
else:
om.MGlobal.setZAxisUp()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment