Forum Replies Created

  • David Rock

    May 30, 2022 at 7:06 pm in reply to: Changing keyframes of a layer in multiple Comps

    Thanks for your reply…got a solution from Dan Ebberts, saved me a whole bunch of time.

    The Null was called Pic Contoller. It has 3 keyframes, wanted to change the second one from 123% to 98%

    function fixScale(){

    var myComp;

    var myLayer;

    var myProp;

    for (var i = 1; i <= app.project.numItems; i++){

    if (app.project.item(i) instanceof CompItem){

    myComp = app.project.item(i);

    for (var j= 1; j <= myComp.numLayers; j++){

    myLayer = myComp.layer(j);

    if (myLayer.name == “Pic Controller”){

    myProp = myLayer.property(“Scale”);

    if (myProp.numKeys > 1){

    myProp.setValueAtKey(2,[98,98]);

    }

    break;

    }

    }

    }

    }

    }

    fixScale();

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