Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Can anyone help me on making a script for collecting the objects having ngons from a given selection?
Thanks
Solved! Go to Solution.
Hi,
Can anyone help me on making a script for collecting the objects having ngons from a given selection?
Thanks
Solved! Go to Solution.
This will select all objects which have at least one polygon with more than 4 sides.
(
poGetNumFaces = polyop.getNumFaces
selObjsArr = selection as array
nGonsObjsArr = #()
for o in selObjsArr where classOf o == Editable_Poly do
(
oNumFaces = poGetNumFaces o
stopLoop = false
for f = 1 to oNumFaces while stopLoop == false where (o.getFaceDegree f) > 4 do
(
append nGonsObjsArr o
stopLoop = true
)
)
if nGonsObjsArr.count != 0 do
(
select nGonsObjsArr
)
)