This script works well in 3ds max 9 even though I'm sure has some wrongs in it. It attaches an animated box linked on each animated selected vertex.
In 3ds max 2009 it creates the boxes, but they are linked to random vertices not to the selected ones.
How can I make it compatible to 3ds max 2009+ ?
for i = 1 to $.selectedVerts.count do
(
box name:("bake_" + ($.selectedVerts[i] as string)) position:((getVert $ i) + [0,0,-.02]) length:1 width:1 height:1
)
for i = (animationrange.start as integer) to (animationrange.end as integer) do
(
with animate on
(
slidertime = i
if currentTime == 188f do exit
for m = 1 to $.selectedVerts.count do
(
(execute ("$'"+"bake_" + $.selectedVerts[m] as string + "'")).pos = (getVert $ m)
)
)
)
barigazy · 2012-06-01