Search found 7 matches

by gimmel
July 19th, 2007, 6:09 am
Forum: Expressions Library
Topic: Exponential Scaling
Replies: 4
Views: 23115

Easy Exponential Scaling

It's much easier to scale exponential: Just add this expression to your scaling: s=Math.exp(transform.scale[0]/21.667905)-1; [s,s] Now you can set as much keyframes you want, play with ease and hold. A keyframe value of 0% results in 0%, 100% results in 100%, everything inbetween (and outside of thi...
by gimmel
November 6th, 2006, 2:11 pm
Forum: Expression Discussion
Topic: springy expression
Replies: 15
Views: 25312

Springy expression with physics

To be true: I never tried this expression in 3D space. If I find some time, I will try to make a better expression that works in 3D, too.
by gimmel
September 19th, 2006, 5:43 am
Forum: Expression Discussion
Topic: After Effects 6.5 Bug?
Replies: 2
Views: 4368

position1 and position2 are positions from a layer. Like

Code: Select all

position1=thisComp.layer("arrow")
What else? :)

Weird: Now the length function works without problems.
by gimmel
September 19th, 2006, 5:36 am
Forum: Expression Discussion
Topic: springy expression
Replies: 15
Views: 25312

springy expression with physics

All these ways to simulate a spring have a little problem: they generate fake animations. The springy motion gets calculated only at keyframes. I've tried a different way: rapidity=3; //following speed inertia=0.15; //how dull the following will be (0-1) leader=thisComp.layer("leader") pos1=leader.p...
by gimmel
September 18th, 2006, 5:10 am
Forum: Expression Discussion
Topic: Oscillating Popup
Replies: 3
Views: 4960

Sorry, forgot something!

Sorry, forgot something! The last script only works if the layer starts at the compositions beginning. With this script you can move the layer in time. The animation will start at layer start. layertime=time-startTime; comein=Math.min(layertime*4,1) decay=Math.exp(-layertime*4); swing=Math.cos(layer...
by gimmel
September 18th, 2006, 5:02 am
Forum: Expression Discussion
Topic: Oscillating Popup
Replies: 3
Views: 4960

Try this

Put this code into the scale property:

Code: Select all

comein=Math.min(time*4,1)
decay=Math.exp(-time*4);
swing=Math.cos(time*24)*60;
sc=(100+swing*decay)*comein;
[sc,sc]
I hope that is what you were looking for.
by gimmel
September 15th, 2006, 11:52 am
Forum: Expression Discussion
Topic: After Effects 6.5 Bug?
Replies: 2
Views: 4368

After Effects 6.5 Bug?

I have a problem while writing an expression: The length function (for calculating the length of a vector) gives me an error message: Function not defined.

Who else has this problem?

Example:

Code: Select all

L=length(position1,position2);
Michael