0

これを実行するとmayapy

import maya.standalone
maya.standalone.initialize()
import maya.cmds as cmds
cmds.file("/Users/Desktop/test.ma", open=True, force=True)

次に、次のエラーが表示されます。

RuntimeError: file: /Users/Desktop/dad.ma line 26: The camera 'perspShape' has no '.aiTranslator' attribute.
file: /Users/Desktop/test.ma line 26: setAttr: No object matches name: .aiTranslator
file: /Users/Desktop/test.ma line 43: The camera 'topShape' has no '.aiTranslator' attribute.
file: /Users/Desktop/test.ma line 43: setAttr: No object matches name: .aiTranslator
file: /Users/Desktop/test.ma line 59: The camera 'frontShape' has no '.aiTranslator' attribute.
file: /Users/Desktop/test.ma line 59: setAttr: No object matches name: .aiTranslator
file: /Users/Desktop/test.ma line 76: The camera 'sideShape' has no '.aiTranslator' attribute.
file: /Users/Desktop/test.ma line 76: setAttr: No object matches name: .aiTranslator
file: /Users/Desktop/test.ma line 90: The mesh 'pSphereShape1' has no '.aiTranslator' attribute.
file: /Users/Desktop/test.ma line 90: setAttr: No object matches name: .aiTranslator
Error reading file.
Error reading file.

しかし、これを Maya で実行すると、次のようになります。

import maya.cmds as cmds
cmds.file("/Users/Desktop/test.ma", open=True, force=True)

その後、問題なく実行されます。

test.maオブジェクトが 1 つだけ入った新しいシーンで、空想的なものは何もありません。何らかの理由で、これを mayapy/maya.standalone から実行すると、このエラーが発生します

4

1 に答える 1