PyMEL在Eclipse中出错

时间:2013-10-29 07:09:45

标签: python eclipse maya

我为Maya脚本配置了Eclipse。当我尝试运行以下脚本时,我收到了错误。但maya.cmds模块不适用于PyMEL。

import pymel.core as pm
pm.polySphere()

Traceback (most recent call last):
  File "C:\Users\shivani\workspace\pythonFirst\firstModule.py", line 1, in <module>
import pymel.core as pm
  File "C:\pymel-1.0.3\pymel\core\__init__.py", line 6, in <module>
import pymel.versions as _versions
  File "C:\pymel-1.0.3\pymel\versions.py", line 57, in <module>
_current = _MGlobal.apiVersion()
TypeError: unbound method apiVersion() must be called with MGlobal instance as first   argument (got nothing instead)

0 个答案:

没有答案