小白球的运动为时间进度标记
当前表达式为:
start = thisComp.layer("Video").inPoint;
end = thisComp.layer("Video").outPoint;
x = time/(end-start)*thisComp.width;
[x,value[1]];
thisComp.width
分隔栏的位置设定:thisComp.layer(video").marker.key(1).time.
V1标记点的位置
Before
After
完整表达式如下:
start = thisComp.layer("Video").inPoint;
end = thisComp.layer("Video").outPoint;
x = thisComp.layer("Video").marker.key(1).time/(end-start)*thisComp.width;
[x,value[1]];
x1 = thisComp.layer("01").transform.position[0];
x2 = thisComp.layer("02").transform.position[0];
x = (x1+x2)/2;
[x,value[1]]
最终演示效果
thisComp.layer("Video").marker.key(1).comment