scene up query

44 views
Skip to first unread message

Todd Widup

unread,
Dec 5, 2013, 7:55:31 PM12/5/13
to python_in...@googlegroups.com
rarely have to do this...as most places I have been only use Y up.  as I am dealing with some places that use Z and some that use Y, I am altering a few chunks of code to deal with it correctly...so is there an easy way in pymel to get the correct scene up axis?



--
Todd Widup
Creature TD / Technical Artist
to...@toddwidup.com
todd....@gmail.com
www.toddwidup.com

Todd Widup

unread,
Dec 5, 2013, 8:09:04 PM12/5/13
to python_in...@googlegroups.com
found it...and incase someone was wondering..

pm.general.upAxis()

Mark Jackson

unread,
Dec 6, 2013, 4:27:05 AM12/6/13
to python_inside_maya
or iwthout Pymel:   

import maya.OpenMaya as OpenMaya
vect=OpenMaya.MGlobal.upAxis()


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk37Vz920AE4e4Yy9Q2JUJkqJ5XVg__2SPBYM_XCmXSgwCg%40mail.gmail.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
-------------------------------------
Mark Jackson
Technical Animation Director
http://markj3d.blogspot.com/
Reply all
Reply to author
Forward
0 new messages