MODO | Scripting in Python - Tips #01

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)
Previous
Previous

SMO COLOR BAR: Cycle function

Next
Next

SMO PHOTO STRAIGHTEN - WIP