def getMeshGrps(self, meshes=0):
        """
        SYNOPSIS
         Parses scene for groups contain actor/environment meshes

        INPUTS
         (bool)	meshes:	return all meshes instead of groups

        RETURNS:
         (list) meshGrps
         or
         (list) allMeshes

        """
        # find mesh groups
        meshGrps = []
        allMeshes = []
        for grp in self.getTopGroups():
            for child in self.meshesInGroup(grp):
                if isinstance(child, nt.Mesh) or re.search('lod', child.name(), re.I):
                    meshGrps.append(Transform(grp))
                    allMeshes.append(child)
        assert (len(meshGrps) > 0), "Could not find mesh group in scene. Missing 'lod0' suffix?"

        if meshes:
            assert (len(allMeshes) > 0), 'No actor meshes found'
            return allMeshes
        return meshGrps
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/MayaSceneCore.getMeshGrps/original