Object match error when running a Python script from command line Maya
问题 I have this script in Python which I'm running into a maya file from a command line: import maya.standalone maya.standalone.initialize("Python") import maya.cmds as cmds from maya import cmds import maya.mel as mel import glob def importFile(i): cmds.file(i, i=True, groupReference=True, groupName="myobj") def materialFile(): if cmds.objExists('Panel*'): cmds.select("Panel*", replace=True) myMaterial = "BlueGlass" cmds.sets( e=True, forceElement= myMaterial + 'SG' ) if cmds.objExists('Body*'):