视频:https://www.bilibili.com/video/av63650825
笔记:
1.空对象层(InputDuration)特效slider control ,控制时间长短
2.进度条缩放属性表达式:01.定义变量duration = thisComp.layer(“InputDuration”).effect(“Slider Control”)(“Slider”); 02.定义变量barwidth = linear(time,0,duration,0,100);【linear一次方程】03.表达式为[barwidth,100];【宽,高】
3.数字文字属性表达式:01.定义变量duration = thisComp.layer(“InputDuration”).effect(“Slider Control”)(“Slider”); 02. linear(time,0,duration,0,100); 03.取最小整数Math.floor(); 04.加上百分比:+“%”
duration = thisComp.layer("InputDuration").effect("Slider Control")("Slider");
barwidth = linear(time,0,duration,0,100);
[barwidth,100];
duration = thisComp.layer("InputDuration").effect("Slider Control")("Slider")
Math.floor(linear(time,0,duration,0,100))+"%";