animationcurve.addkey 添加键

2014-12-31 03:38| 发布者: 杨炎| 查看: 2367| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: animationcurve.addkey 添加键functionaddkey(time: float,value: float) : intdescription描述add a new key to the curve.在曲线中添加一个新键.smooth tangents are automatically computed for the key. returns ...

animationcurve.addkey 添加键

functionaddkey(time: float,value: float) : int

description描述

add a new key to the curve.

曲线中添加一个新键.

smooth tangents are automatically computed for the key. returns the index of the added key. if no key could be added because there is already another keyframe at the same time -1 will be returned.

自动为该键计算平滑切线.返回该键的索引,如果此时已存在另一个关键帧,则不能添加键,并返回-1.

另见:keys变量.

o functionaddkey(key: keyframe ) : int

description描述

add a new key to the curve.

添加新键到曲线.

returns the index of the added key. if no key could be added because there is already another keyframe at the same time -1 will be returned.

返回该键的索引,如果此时已存在另一个关键帧,则不能添加键,并返回-1.

see also:keysvariable,keyframestruct.

相关阅读

文章点评
相关文章