Maya python FBX 导出?
Maya python FBX export?
我正在尝试使用 docker 图像中的 Maya python 解释器将 .obj 文件转换为 fbx。我已经尝试了以下 3 个命令并且 none 似乎有效。在 docker 图像中,我 mayapy 是 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("/房子")
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('FBXExport -f "/house"')
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
我读完这篇文章后就开始工作了post
我正在尝试使用 docker 图像中的 Maya python 解释器将 .obj 文件转换为 fbx。我已经尝试了以下 3 个命令并且 none 似乎有效。在 docker 图像中,我 mayapy 是 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("/房子")
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('FBXExport -f "/house"')
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
我读完这篇文章后就开始工作了post