Animation script wanted

Im new to 3ds maxscript. I wanted to create an animation of a selection where each object of the selection moves to a position say 10 units in Z from its current position in a sequence of 100 frames

------So far i have got is this

for i = 1 to selection.count do
( with animate on
( at time (i * 5) move selection[i] [0,0,10]
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

example

objs = selection as array
with animate on (
	for t = 0 to 100 by 5 do (
		at time t (
			for o in objs do
			( o.pos.z += 10 )
		)
	)
)

...or compressed but not so readable syntax:
for t = 0 to 100 by 5 do with animate on at time t objs.pos.z += 10

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.