Hi Guys
Is there any script with this loop algorithm:
"select first polygon of object,
make it Planar in Z axis,
select next poly, and continue this loop for all polys of object"
??
.
.
thanks.
Forum topic · Scripts Wanted
By pcforlife · 2017-04-10
Hi Guys
Is there any script with this loop algorithm:
"select first polygon of object,
make it Planar in Z axis,
select next poly, and continue this loop for all polys of object"
??
.
.
thanks.
miauu · 2017-04-16
SElect the objects and run the script below. The objects must be Editable Poly objects.
(
local poGetNumFaces = polyop.getNumFaces
local poSetFaceSelection = polyop.setFaceSelection
selObjsArr = selection as array
if selObjsArr.count != 0 do
(
for o in selObjsArr where classOf o == Editable_Poly do
(
polysCnt = poGetNumFaces o
for f = 1 to polysCnt do
(
poSetFaceSelection o #{1..polysCnt}
o.MakePlanarIn #Z selLevel:#Face flag:1
)
)
)
)