If you dare counting Vertex, Edge and Polygons selected in current Mesh Layers, use this method.
it count all the selected element on multiple Meshlayer as well as on a single one.
Thanks to Matt Cox for is tips shared on the Foundry Forums.
selSvc = lx.service.Selection ()
SelVertexCount = selSvc.Count (selSvc.LookupType (lx.symbol.sSELTYP_VERTEX))
lx.out(‘In Selected items, Vertex count selected:’,SelVertexCount)
SelEdgeCount = selSvc.Count (selSvc.LookupType (lx.symbol.sSELTYP_EDGE))
lx.out(‘In Selected items, Edge count selected:’,SelEdgeCount)
SelPolyCount = selSvc.Count (selSvc.LookupType (lx.symbol.sSELTYP_POLYGON))
lx.out(‘In Selected items, Polygon count selected:’,SelPolyCount)
Votre commentaire