Search code examples
animationadobeafter-effectspreset

Animation Preset in After Effects


I want to create a scale-up and scale-down animation the first and last 7 frames of my layer. Is there a way to create an animation preset for this? Thank you!


Solution

  • Solution:

    startScale = [0,0];
    endScale = [100,100];
    nombre_capa = "layer_name";
    
    if(time < (thisComp.layer(nombre_capa).inPoint+thisComp.layer(nombre_capa).outPoint)/2) 
            ease(time,thisComp.layer(nombre_capa).inPoint,thisComp.layer(nombre_capa).inPoint+0.2,startScale,endScale) 
    else 
    ease(time,thisComp.layer(nombre_capa).outPoint-0.2,thisComp.layer(nombre_capa).outPoint,endScale,startScale);