Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Differentiate a mesh from a combined mesh?
  RSS 2.0 ATOM  

Differentiate a mesh from a combined mesh?
Rate this thread
 
8382
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 30
  • Joined: 03 December 2007 09:18 PM

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



Replies: 0
avatar

you can check if it is a “sub” or “intermediate” object with:

if (!fnMesh.isIntermediateObject() )



Replies: 0




   
  Settings Choose Theme color: