
Click in the ball to open a new web page
An animation created using 3ds max can be manipulated in the Director world.
In our demo we created two objects that have animation:"ufo" and "ufo1"- the ball.
In the Director Help you will see many methods to use with animation.
The default is the start and loop of all animations when the world is loaded.
To control an animation you need sometimes to use its name. If the object is ufo its animation name is, by default:ufo-Key
To stop the loop there are a method:
myworld.model("ufo").keyframePlayer.currentLoopState = FALSE
If you would like to change the velocity of an animation (the "normal" velocity defined in 3ds max is 1):
myworld.model("ufo1").keyframePlayer.playRate = 0.2
In our demo the new code for animation is, in the avatarobj script:
on new me
etc. etc.
myworld.model("ufo1").keyframePlayer.playRate = 0.2
myworld.model("ufo").keyframePlayer.playRate = 0.2
return me
end
on control me
myworld.model("ufo1").keyframePlayer.currentLoopState = FALSE
myworld.model("ufo").keyframePlayer.currentLoopState = FALSE
etc.etc.
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
