【发布时间】:2020-12-09 13:04:20
【问题描述】:
我想知道如何在 Maya-MEL 中使用“选择”。 问题是: 当我使用该软件选择一个blendshape对象(这里是FBX格式的一双眼睛),我可以通过多种方式选择它,例如“select -r |eye|eye”,“select eye_blendShapes”,“select eyeShape” "选择眼睛|眼睛"... just like this
但是,在我的 c++ 程序中它不能工作
MGlobal::executeCommand(MString("file -import -namespace \"NTemp\" -mergeNamespacesOnClash true") + "\"" + eye_file + "\"");
//MGlobal::executeCommand(MString("file -import ") + "\"" + eye_file + "\"",result);
MGlobal::executeCommand(MString("select -r eyeShape"));
我不知道如何在我的 C++ 代码中选择眼睛,有人可以帮助我吗? 非常感谢!
【问题讨论】:
-
您是否阅读了 Maya 帮助文档中的 Selecting with the API 帮助部分?