Answered
How to perform exponential scale in an AE script ?
I am working on an ae script (jsx format) and would like to apply an exponential scale on a layer (same than in keyframe assistant). What is the command to use ?
Thanks !
I am working on an ae script (jsx format) and would like to apply an exponential scale on a layer (same than in keyframe assistant). What is the command to use ?
Thanks !
This seems to work:
var myComp = app.project.activeItem;
var myLayer = myComp.layer(1);
for (var i = 1; i <= myComp.numLayers; i++){
myComp.layer(i).selected = false;
}
var myProp = myLayer.property("Scale");
myProp.setSelectedAtKey(1,true);
myProp.setSelectedAtKey(2,true);
app.executeCommand(app.findMenuCommandId("Exponential Scale"));Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.