[英]Maya python FBX export?
I am trying to convert an.obj file to fbx with maya's python interpreter in a docker image.我正在尝试在 docker 图像中使用 maya 的 python 解释器将 an.obj 文件转换为 fbx。 I have tried the following 3 commands and none seem to work.
我尝试了以下 3 个命令,但似乎都不起作用。 In the docker image I mayapy is the python interpreter and I am running my command like:
在 docker 图像中,我 mayapy 是 python 解释器,我正在运行我的命令,如:
mayapy maya_pipeline.py arg1
Mm.eval('FBXExportInAscii -v true') 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("/house") 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"') 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".
Imported libraries导入库
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.