Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Bake All Expressions in Comp?

  • Dan Ebberts

    January 19, 2015 at 10:34 pm

    If it’s just Orientation, I think this will work (assuming you have the comp active):


    var myComp = app.project.activeItem;
    for (var i = 1; i <= myComp.numLayers; i++){
    myComp.layer(i).selected = false;
    }
    var myProp;
    for (var i = 1; i <= myComp.numLayers; i++){
    try{
    myProp = myComp.layer(i).property("Orientation");
    if (myProp.expressions != ""){
    myProp.selected = true;
    app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes"));
    myComp.layer(i).selected = false;
    }
    }catch(err){
    }
    }

    Dan

  • Lukasz Pason

    January 19, 2015 at 10:41 pm

    Worked like a charm. Thank you Dan! I can use this with any property, yes? What a time saver!

    Motion Designer / DJ / Father
    http://www.lukaszpason.com
    http://www.krop.com/lukasz

  • Dan Ebberts

    January 19, 2015 at 10:48 pm

    >I can use this with any property, yes?

    Well, you’d have to edit the property name in the script. Having it work for any property with an expression would require a more complex script.

    Dan

  • Lukasz Pason

    January 19, 2015 at 10:49 pm

    Thanks again Mr. Mad Scientist. =)

    Motion Designer / DJ / Father
    http://www.lukaszpason.com
    http://www.krop.com/lukasz

  • Chris Scalzo

    December 11, 2019 at 9:04 pm

    If I used this to bake sourcetext that I populated from expressions, it there any way to turn off keyframing on the text layers since every frame would be the same value? I know I can go through hundreds of layers and click the stopwatch.

    Thanks in advance, I realize this is a 5 year old post.

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