Get the submeshes as what? Objects? As stated, maya (and pymel) doesn't treat different poly shells as different objects.
If you want to get the faces that comprise each shell (subobject) of an object, Justin Israel's script shows a simple way of doing so: https://gist.github.com/justinfx/3738519 Also, when you import pymel.core, all the subpackages of pymel.core get imported into the pymel.core namespace. That means that you can use pymel.core.ls instead of having to specify pymel.core.general.ls. This also includes the mel object. pymel.core.mel is valid. On Wednesday, June 12, 2013 3:25:47 PM UTC-7, Christian Akesson wrote: > Does anyone know how to get the submeshes of a polygon mesh. > Combine two spheres into a single mesh and each sphere will be a submesh. > > > I've been searching the docs and Google, but have not been able to find > anything. > > Anyone know if PyMel has anything for this anywhere? > > > Thanks, > /Christian -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
