本文整理汇总了Python中maya.OpenMaya.MGlobal.mayaVersion方法的典型用法代码示例。如果您正苦于以下问题:Python MGlobal.mayaVersion方法的具体用法?Python MGlobal.mayaVersion怎么用?Python MGlobal.mayaVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类maya.OpenMaya.MGlobal
的用法示例。
在下文中一共展示了MGlobal.mayaVersion方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: and
# 需要导入模块: from maya.OpenMaya import MGlobal [as 别名]
# 或者: from maya.OpenMaya.MGlobal import mayaVersion [as 别名]
if extension and (ma.group('ext') is not None):
version += "-" + ma.group('ext')
return version
def bitness():
"""
The bitness of python running inside Maya as an int.
"""
# NOTE: platform.architecture()[0] returns '64bit' on OSX 10.6 (Snow Leopard)
# even when Maya is running in 32-bit mode. The struct technique
# is more reliable.
return struct.calcsize("P") * 8
_is64 = bitness() == 64
_current = _MGlobal.apiVersion()
_fullName = _MGlobal.mayaVersion()
_shortName = parseVersionStr(_fullName, extension=False)
_installName = _shortName + ('-x64' if (_is64 and _current < 201600) else '')
v85 = 200700
v85_SP1 = 200701
v2008 = 200800
v2008_SP1 = 200806
v2008_EXT2 = 200806
v2009 = 200900
v2009_EXT1 = 200904
v2009_SP1A = 200906
v2010 = 201000
v2011 = 201100
v2011_HOTFIX1 = 201101