Can anybody help me? I am trying to write a script for after effects CC using Extendscript. I want change duration of layer in composition by the javascript. I wrote this code here
app.project.item(1).layer(1).length = 12;
or
app.project.item(1).layer(1).duration = 12;
but it doesn't works. How can i do it? Thanks.
The thing is not that easy. Layers like Solids don't have a duration you can set. But you can set their
inPoint
andoutPoint
. Other layers like a comp need to be changed at their source. See the code below on how to do that.