如何使用Extendscript语言冻结After Effects中的图层?

问题描述 投票:0回答:1

我已经在数组中有一些组合。

    x = *is an item inside an array* .. 
    y = 1 ; // just one layer in this comp.

    myLayer = app.project.item(x).layer(y)

我需要的是应用命令来冻结这一层...搜索了很多地方但仍然无法找到它...

有人可以帮忙吗?

adobe extendscript after-effects
1个回答
0
投票

您需要为相关图层添加时间重新映射:

myLayer= app.project.item(x).layer(y);
myLayer.timeRemapEnabled = true;
timeRemap = mylayer.property("Time Remap");
timeRemap.setValueAtTime(theTime , theValue); // or is it (theValue, theTime)?

时间重新映射是AE中Layer对象的属性。

© www.soinside.com 2019 - 2024. All rights reserved.