JavaScript 在AE中的用法

1. 数组

1.1 数组相加

方法value + [0,0,index];
解释 :Z轴位置加上index值,x和y位置不变,好处是可以改变位置信息,而不是表达式写死。

AE 方法

index

解释: 当前合成内图层的下标(图层数),从1计数。
归属: layer - genenal - index
使用方法: thisComp.layer("形状图层 1").index;
返回结果: 2 当前合成内指定图层的位置(第几个图层)。

time

解释: 针对不同属性,随时间而变化。例如角度,每秒转1度。
归属: global - time
使用方法: time or time * 10
返回结果: 属性随时间变化而变化。

posterizeTime(帧率)

解释: 只改变当前图层的帧率。
归属: global - posterizeTime
使用方法: posterizeTime(1);
返回结果: 当前图层每秒1帧。

thisComp

解释: 对象,当前合成。可以在表达式列表里查看come对象中不同的方法。
归属: global - thisComp;
使用方法:
返回结果:


解释:
归属:
使用方法:
返回结果:

添加新评论