hi! first, i write this code:
MSelectionList selectionList;
MGlobal::getActiveSelectionList(selectionList);
//first selection :
MDagPath dag_path;
MItSelectionList kDagNodeSelectionList(selectionList, MFn::kDagNode);
kDagNodeSelectionList.getDagPath(dag_path);
MObject obj;
//get shape :
dag_path.extendToShape();
obj = dag_path.node();
MFnDependencyNode meshObj(obj);
in transform node with one shape or mesh node, this code is true and it Give us the only mesh, But if the transform node had more shape node, How to find individual shapes?