Make Planar in Z Axis for each Polygon or Element Individually

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.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

SElect the objects and run

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.