リストされたオブジェクトがブレンドシェイプ ノードであるかどうかを Maya に確認させようとしています。
これは私のコードです:
def bake(self, *args):
self.items["selection"] = cmds.ls(sl = True)
self.items["shapes"] = cmds.listRelatives(self.items["selection"], ad = True)
shapes = ()
for i in self.items["shapes"]:
bs = cmds.listConnections(i, type = "blendShape", exactType = True)
if cmds.objectType(bs, isType = "blendShape"):
print bs
戻る# Error: RuntimeError: file X:/Documents/maya/scripts\jtBakeCharacter.py line 16: No object name specified
16 行目は次のとおりです。if cmds.objectType(bs, isType = "blendShape"):
オブジェクト名を指定していることを除いて、そのオブジェクト名は bs .. bs の結果を出力しましたが、多くのオブジェクトがリストされています。たくさんの。