AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat May 18, 2013 4:02 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: video "scratching" effect
PostPosted: Sat Aug 06, 2005 5:31 am 
Offline

Joined: Sat May 21, 2005 10:17 am
Posts: 6
I realize this is so incredibly simple, but it works well, with many diff techniques:

Code:
maxAmp = 30;
minAmp = 1;
spanAmp = maxAmp - minAmp;
incAmp = sqrt(spanAmp);

if(varAmp < spanAmp/2){
  (varAmp / incAmp) - incAmp;
} else {
  (varAmp / incAmp) + incAmp;
}


basically maxAmp is the highest amplitude you want the code to react to. anything higher than maxAmp will be treated the same as maxAmp. varAmp (which is not assigned by the code) is your INPUT. so that would be audio1.level or whatever.

inAmp divides everything up evenly, so in case your amp is higher than 30, the code will adjust accordingly.

put this code in your time-remap layer. (some playing with would probably be required for a special look).

.. more comin soon

_________________
Image


Top
 Profile  
 
 Post subject: AF rejects expression
PostPosted: Sat Feb 03, 2007 11:41 am 
Offline

Joined: Fri Feb 02, 2007 9:30 pm
Posts: 5
When trying to use this expression text I get the message:

"Function sqrt is undefined. Expression disabled."

Any ideas? Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 03, 2007 1:56 pm 
Offline

Joined: Thu Jul 14, 2005 7:33 pm
Posts: 13
Location: VA
Try this instead:

Code:
maxAmp = 30;
minAmp = 1;
spanAmp = maxAmp - minAmp;
incAmp = Math.sqrt(spanAmp);

if(varAmp < spanAmp/2){
  (varAmp / incAmp) - incAmp;
} else {
  (varAmp / incAmp) + incAmp;
}

_________________
~Colin
<hr>
http://www.colinbraley.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 03, 2007 2:15 pm 
Offline

Joined: Fri Feb 02, 2007 9:30 pm
Posts: 5
Colin,

This time I get the error message: "Class 'Layer has no property or method named 'varAmp'. (error occured at line six).


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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