Maya | Examine world coordinate system settings

Check which of the world coordinate systems of the category "Settings" is set in the Maya menu [Window]-[Settings / Preferences]-[Preferences].

image

import maya.cmds as cmds

if cmds.upAxis(query=True, axis=True) == "y":
    print "Y UP"
else:
    print "Z UP" 

Recommended Posts

Maya | Examine world coordinate system settings
[Linux] [Initial Settings] System Settings
Get clipboard from Maya settings