我正在尝试使用码头图像中的maya&#python解释器将.obj文件转换为fbx。我尝试了以下3个命令,但似乎都没有。在docker镜像中,我可能是python解释器,我运行的命令如下:
mayapy maya_pipeline.py arg1
Mm.eval(' FBXExportInAscii -v true')
Error: line 1: Cannot find procedure "FBXExportInAscii".
Traceback (most recent call last):
File "maya_pipeline.py", line 251, in <module>
Mm.eval('FBXExportInAscii -v true')
RuntimeError: Error occurred during execution of MEL script
pymel.core.other.FBXExport(&#34; /房子&#34)
Traceback (most recent call last):
File "maya_pipeline.py", line 251, in <module>
pymel.core.other.FBXExport("/house")
AttributeError: 'module' object has no attribute 'core'
Mm.eval(&#39; FBXExport -f&#34; / house&#34;&#39;)
Error: line 1: Cannot find procedure "FBXExport".
Traceback (most recent call last):
File "maya_pipeline.py", line 249, in <module>
Mm.eval('FBXExport -f "/house"')
RuntimeError: Error occurred during execution of MEL script
line 1: line 1: Cannot find procedure "FBXExport".
导入的库
import sys
import os
from maya import standalone, cmds
import maya.cmds
from collections import defaultdict
import maya.mel as Mm
import maya.standalone
maya.standalone.initialize(name='python')
import pymel