ScriptSpot

Forum topic · General Scripting

count edges on selected faces

By kredka · 2014-11-03

Description

Can anybody help whit this one, I already tried with polyop.getEdgeFaces,getEdgesByFlag, but I can`t figure this out.

Comments (2)

kredka · 2014-11-04

thank you very much

.

miauu · 2014-11-03

Use

polyop.getEdgesUsingFace

Add all edges to one bitarray to avoid having edges multiple times when they are adjacent for two faces.

Also, the ugly solution:
convert face selection to edge selection and count edges:


$.EditablePoly.ConvertSelection #Face #Edge
$.modifiers[#Edit_Poly].ConvertSelection #Face #Edge