i'd like to know how to use "select" in Maya-MEL. Question is: when i use the software select an blendshape object(here is a pair of eye in FBX format), i can select it in many ways,such as "select -r |eye|eye","select eye_blendShapes","select eyeShape","select eye|eye"... just like this
But, In my c++ program it can't work
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"));
i don't know how to select the eye in my c++ code, anyone can help me? Thanks a lot!
you should use that python code
c++ code is almost same