Forum Replies Created

  • With this code you link layername to layername2 in the same comp
    app.project.item(1).layer("layername").parent = app.project.item(1).layer("layername2");

    not work for one comp to other comp’s layer to link 😉
    app.project.item(1).layer("first_comp_a_layer").parent = app.project.item(2).layer("second_comp_a_layer");

  • Murat Atasoy

    March 12, 2016 at 11:01 pm in reply to: Need a assist to understand this expression lines

    return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
    this code is a different if expression. means;
    if(t==0){
    return b;
    }else{
    return c*something+b;
    }

    such as
    value = (a==1) ? "hello":"bye";
    same
    if(a==1){ value = "hello"; } else {value = "bye";}

    These codes make a value easein, easeout and easeinandout

  • Murat Atasoy

    March 12, 2016 at 10:44 pm in reply to: Set Comp Start Time to Layer Start Time

    in this example you can see the

    var compone = curComp.layer(1);
    var comptwo = curComp.layer(2);
    comptwo.startTime = compone.outPoint;

    layer’s has startTime and outPoint. outPoint is endtime of layer.
    You make your first item(myComp)’s start time as timeToSet on your code.

    You should use startTime = 10; instead of startTime.setValue() function.

    You can find detailed informations about layers on ADOBE® AFTER EFFECTS® CS6 SCRIPTING GUIDEpdf page 86.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy