Wow!! Much more synthetic and functional! Thanks so much!
But now I undertand I need to do one more question.. I’m sorry ..I used “wiggle” as an easy expression example hoping to adapt your suggestions to my real and bigger problem.
My real intent was to understand how to freeze at a specific time any expression..
This is my real mission: freezing at a specific time this expression that keeps a shape linked to the bottom margin of another shape even if its scale is changing…
a=thisComp.layer("01"); // Key object
d=30; // Distance
s=a.transform.scale[1];
apos=a.transform.position[1];
ah=a.sourceRectAtTime(time).height/2;
s1=transform.scale[1];
h=thisLayer.sourceRectAtTime(time).height/2;
[180 , apos+(ah*s/100)+(h*s1/100)+d]
How can I freeze this expression for example at frame 50? I don’t understand how to use “Math.min”
Thanks again…..