[Closed] move on z position
hi
i want to create a script for move my object only at the z position. after i use this script :
animate on ( at time 50 $.pos = [0,0,30]; at time 90 $.pos = [0,0,0] )
for o in $* do moveKeys o.pos.controller (random 0 70)
my all object goes to 0 x position and 0 y position… i want my object move only on z position.
thanx a lot for your reply
Instead of assigning an absolute position, you can either add to the current position, or use the MOVE() command which will move the objects relatively to their current position.
For example,
for o in selection do at time 50 with animate on o.pos += [0,0,30] –moves 30 along z
or
at time 50 with animate on move $ [0,0,30]
Not sure what you are trying to do with the other command on frame 90, as you were telling all objects to go to the origin. What do you expect to happen on that frame?
hi bobo
thanx a lot for your answer & thanx for your great dvd tutorial.
in frame 90 i want my object back to first z position.
( sorry for my bad english)
for o in selection do
(
at time 0 oldPos = o.pos
with animate on
(
at time 50 o.pos += [0,0,30]
at time 90 o.pos = oldPos
)--end animate context
)--end for loop
Store the old position at frame 0 in a variable oldPos.
Set a key on frame 50 by moving the object along Z
Set another key on frame 90 by moving the object back to where it was on frame 0