
I spend a bit of time to wrote this script requested by Michele at ScriptSpot. I guess he need it to add license system to his scripts, nm, it is an open source, i.e. you can read the code and use it for free as you like it ;-)
Autodesk 3ds Max Tech Blog
-- Lets say we have 3 objects with names A01, A02, A03.
-- And wish to make 2 instance clones on each of them.
select #($A01, $A02, $A03) -- select them
-- mapped instance copy:
for i = 1 to 2 do instance selection
-- iterated instance copy:
for obj in selection do
for i = 1 to 2 do instance obj
Case 1: Case 2:
-----------..-----------
A01 A02 A03 A01 A02 A03
A04 A05 A06 A04 A06 A08
A07 A08 A09 A05 A07 A09
fn RemoveVertsWith2Edges epoly = (
vList = for v=1 to epoly.GetNumVertices() where
epoly.GetVertexEdgeCount v == 2 collect v
epoly.SetSelection #Vertex (vList as BitArray)
epoly.Remove selLevel:#Vertex
)
-- example usage:
RemoveVertsWith2Edges $
-- on multiple objects:
for obj in selection do RemoveVertsWith2Edges obj