Select Every Other Component of Selection
Currently I have a script to select every other object in a selection, it works well.
skipThisOne = 0
selectEveryOtherObject = #()
these = Selection as array
for thisObject in these do (
if skipThisOne == 0 do (appendIfUnique selectEveryOtherObject thisObject)
skipThisOne = abs (skipThisOne - 1)
) --end thisObject in these
select selectEveryOtherObject
I'd like to make it also work with subobjects if in subcomponent mode. I assume detecting mode is simple, but how to determine every other face edge or vert?
Any help appriciated.
-Joel
Comments
.
Your code for objects selection can looks like this:
For subobjects:
But, selected verts/edges/faces are stored in a bitarrays, which means that they are "sorted" and not stored in the order you selecting them.
Tools and Scripts for Autodesk 3dsMax