AE ENHANCERS

Expressions/Scripts/Presets
It is currently Fri Oct 24, 2014 1:26 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: choose the start point
PostPosted: Mon Feb 25, 2008 9:33 am 
Offline

Joined: Mon Feb 25, 2008 7:04 am
Posts: 2
hi,

i'm a new user.

i'm graphic designer but not programmer.

i try to to animation with expression.

Code:
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


Top
 Profile  
 
 Post subject: Re: choose the start point
PostPosted: Mon Feb 25, 2008 2:30 pm 
Offline

Joined: Sat Jun 26, 2004 10:01 am
Posts: 307
Location: Folsom, CA
Like this (not tested, but should be close):

Code:
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

_________________
http://www.motionscript.com


Top
 Profile  
 
 Post subject: Re: choose the start point
PostPosted: Mon Feb 25, 2008 4:38 pm 
Offline

Joined: Mon Feb 25, 2008 7:04 am
Posts: 2
Oh yes!

tks

;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group