MaxScript——动画关联表达式

来源:互联网 发布:申请阿里云服务器 编辑:程序博客网 时间:2024/05/22 12:49

b = box()

flyHeight = b.pos.z

animate on
(
    at time 0 b.pos.z = flyHeight
    at time 100 b.pos.z = flyHeight + 100
)
animate off

at time 50 b.pos.z= flyHeight+120




animate <boolean>

当boolean 为on 或true 时,只要改变3ds max 对象的一个动画参数就可产生关键帧,而不管3ds max界面中的动画按钮

是否激活

当boolean 为off 或false 时,将阻止关键帧的产生。


如果不在动画关联表达式里改变物体参数,只有在动画按钮被激活时,才能产生关键帧。

设置animate 表达式为on或off不影响动画按钮的状态。

 

 

at time <frame>

 

设定at time 关联表达式不影响 3ds max 中的时间滑块的位置,我们可用sliderTime来改变时间滑块,如 sliderTime=50

原创粉丝点击