choose the start point

Moderators: Disciple, zlovatt

Post Reply
.H.
Posts: 2
Joined: February 25th, 2008, 7:04 am

hi,

i'm a new user.

i'm graphic designer but not programmer.

i try to to animation with expression.

Code: Select all

variable=effect("Paramètre glissière")("Curseur")
wiggle(2,variable);
ampl = 220 ; // amplitude en pixel
      freq = 1.1 ; // oscillations par seconde
      decroi = 0.5 ; // facteur décroissance
      u = ampl * Math.abs( Math.cos( freq * time * 2 * Math.PI ) ) * Math.exp( - decroi * time ) ;
      position - [ 0 , u ] ;
but i wouldn't start at 0,00 but at 3sec.

how can i do that with this parameters ?

tks
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

Like this (not tested, but should be close):

Code: Select all

myStart = 3;
if (time < myStart){
  value
}else{
  t = time - myStart;

  variable=effect("Paramètre glissière")("Curseur")
  wiggle(2,variable);
  ampl = 220 ; // amplitude en pixel
   freq = 1.1 ; // oscillations par seconde
   decroi = 0.5 ; // facteur décroissance
   u = ampl * Math.abs( Math.cos( freq * t * 2 * Math.PI ) ) * Math.exp( - decroi * t ) ;
   position - [ 0 , u ] ;
}
Dan
.H.
Posts: 2
Joined: February 25th, 2008, 7:04 am

Oh yes!

tks

;)
Post Reply