View Full Version : select all even numbered polygons
corizen 02-06-2008, 01:23 AM I need a maxscript to select all even numbered polygons, could someone be so kind as to show me how this is written.
|
|
ofer_z
02-06-2008, 03:23 AM
for editable mesh:
setFaceSelection $ (for i = 2 to $.numFaces by 2 collect i)
for editable poly:
polyOp.setFaceSelection $ (for i = 2 to $.numFaces by 2 collect i)
hOpe this helps,
o
corizen
02-06-2008, 06:27 AM
Thankyou that works like a charm. It's got me thinking about random faces now.
Moosley
02-06-2008, 11:13 AM
$.selectedFaces = (for f in $.faces as bitarray where (random 0.0 100.0) > 50.0 collect f)
Works for either poly or mesh objects.
corizen
02-06-2008, 12:51 PM
i've been after this for awhile now, thanks Moosley.
CGTalk Moderation
02-06-2008, 12:51 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.