User Tools

Site Tools


ae

After Effects CS6 Expressions

Flicker In Text

  • Use exp() instead of 1-exp() flicker out

Opacity

# -*- mode: javascript; -*-
c1 = 2;
c2 = 0.8*c1;
t = time;
tin = 1;
dt = t-tin;
op = 0;
if (t > tin)
{
  noise = Math.exp(-c2*dt) * (random()-0.5)
  op = 1-Math.exp(-c1*dt);
  op = op + noise;
}
this.transform.opacity = 100 * op;

Change Y Scale

  • Basically the same as above. The final value assignment is a bit more involed for arrays when we detour through a loop of sorts.

# -*- mode: javascript; -*-
c1 = 4;
c2 = 2*c1;
t = time;
tin = 1;
dt = t-tin;
sx = 100;
sy = 0;
if (t > tin)
{
  noise = Math.exp(-c2*dt) * (random()-0.5)
  sy = 1-Math.exp(-c1*dt);
  sy = sy + noise;
  sy = Math.min(sy,1);
  sy = Math.max(sy,0);
  sy = 100 * sy;

}
this.scale.transform = [sx,sy];

ae.txt · Last modified: 2013/07/10 07:02 (external edit)