Created
August 31, 2020 14:20
-
-
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.
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 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