|
I am using this:
MItDependencyNodes it(MFn::kMesh);
to get a list of the meshes in the scene. The problem is when I have say 3 meshes to start with, a cube, a sphere, and a plane. If i get them, there are in fact 3 as there should be. If I select 2 of them and do “mesh -> combine” it makes a polySurface object in maya. If I run again my MItDependencyNodes it(MFn::kMesh); there are FOUR things, all of type mesh: sphere, plan, cube AND polySurface
Is there a way i can get only the polySurfaces and the meshes that are NOT part of a polySurface?
Thanks,
Dave
|
|
|
|
you can check if it is a “sub” or “intermediate” object with:
if (!fnMesh.isIntermediateObject() )
|
|
|