SIGN IN
::
SPONSORS
::
ADVERTISING
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
STOCKYARD
VIDEOS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE AFTER EFFECTS:
Home
Forum
Basics
Expressions
Tutorials
Podcasts
Motion Graphics
Training
Cinema 4D
FAQ
Re: Trigger Mr. Ebbert's Squash and Stretch?
COW Forums
:
Adobe After Effects
FAQ
•
VIEW ALL
•
ADD A NEW POST
•
PRINT
Respond to this post
•
Return to posts index
•
Read entire thread
Re: Trigger Mr. Ebbert's Squash and Stretch?
by
Mike Clasby
on Nov 9, 2008 at 4:21:09 am
Here is an expression for having a marker trigger Dan's squish and squash. Put the expression on Scale. (Copy the expression, Alt-Click the Scale stopwatch, Paste):
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;
}
}
if (n == 0){
value;
}else{
max_dev=20; // max deviation in pixels
spd=35; //speed of oscillation
decay=10; //how fast it slows down
t = time - marker.key(n).time;
s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
value + [s,s];
}
So wherever you place a marker you'll get the old squish and squash. Hit the asterisk (*) key on the numeric pad to drop a marker wherever you are on the timeline.
There are other ways to trigger expressions, but this is easy and very flexible.
Note: No marker, no squish and squash. Five markers give five squish and squashes.
Also if you're talking a diferent expression, just drop that in below the }else{.
Posts Index
Read Thread
Reply
Like
+1
Current Message Thread:
Trigger Mr. Ebbert's Squash and Stretch?
by Greg DiGenti on Nov 8, 2008 at 8:14:27 pm
Re: Trigger Mr. Ebbert's Squash and Stretch?
by Mike Clasby on Nov 9, 2008 at 4:21:09 am
Re: Trigger Mr. Ebbert's Squash and Stretch?
by Greg DiGenti on Nov 9, 2008 at 11:03:37 pm
Re: Trigger Mr. Ebbert's Squash and Stretch?
by Enrique Vazquez Woolfolk on Oct 11, 2009 at 1:51:12 am
Re: Trigger Mr. Ebbert's Squash and Stretch?
by Jamie Zahn on Jul 5, 2010 at 12:56:26 pm
LOGIN TO REPLY
FORUMS
•
TUTORIALS
•
MAGAZINE
•
STOCKYARD
•
VIDEOS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
© 2012
CreativeCOW.net
All rights are reserved. -
Privacy Policy
[
Top
]