ScriptSpot home

Forum topic · General Scripting

count edges on selected faces

By Piotr · 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)
Piotr

thank you very much

miauu

.

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