SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
LIBRARY
PODCASTS
BLOGS
MAGAZINE
SERVICES
NEWSLETTERS
NEWS
STORE
EVENTS
ADOBE AFTER EFFECTS:
Forum
AE Basics
AE Expressions
Tutorials
Articles
Podcasts
Motion Graphics
Training
Cinema 4D
Re: Peak value at Math.round with linear fall-off?
Cow Forums
:
Adobe After Effects Expressions
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Return to Posts Index
•
Read Entire Thread
•
Reply To This Post
Re: Peak value at Math.round with linear fall-off?
by
Dan Ebberts
on May 11, 2008 at 6:19:21 pm
Here's a more general version of Darby's expression - just change the vairable "multiple" to set the spacing between the peak values.
x = effect("Slider Control")("Slider");
multiple = 10;
x = x % multiple;
if(x < multiple/2) x = linear(x, 0, multiple/2, 100, 50);
linear(x, multiple/2, multiple, 50, 100);
FYI, %1 in the previous version just gives you the fractional part of the number. So, for example, 1.3 % 1 is .3 which is what the expression needed when the peaks occured on every integer.
Dan
Return to Posts Index
•
Read Entire Thread
•
Reply To This Post
Current Message Thread:
Peak value at Math.round with linear fall-off?
by Danny Parsons on May 10, 2008 at 7:27:03 pm
Re: Peak value at Math.round with linear fall-off?
by Darby Edelen on May 10, 2008 at 8:39:19 pm
Re: Peak value at Math.round with linear fall-off?
by Danny Parsons on May 11, 2008 at 12:46:44 pm
Re: Peak value at Math.round with linear fall-off?
by Dan Ebberts on May 11, 2008 at 6:19:21 pm
Re: Peak value at Math.round with linear fall-off?
by Danny Parsons on May 11, 2008 at 8:14:44 pm
Re: Peak value at Math.round with linear fall-off?
by Dan Ebberts on May 11, 2008 at 11:04:05 pm
Note:
If you are a registered user and you
do not
see your name and email in the two respective fields above, you may reset your account cookies by clicking
here
. Your post
will not be accepted
if the name and email provided above are not currently registered in our database.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message
Note:
The following characters are HTML command characters, and may cause parts of your post to disappear, if not used correctly: < > &. To include any portion of the post in your response, highlight the desired text and hit the "Q" key. For more on how to post,
click here
.
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
LIBRARY
•
PODCASTS
•
BLOGS
•
MAGAZINE
•
SERVICES
•
NEWSLETTERS
•
NEWS
•
STORE
•
EVENTS
©
CreativeCOW.net
All rights are reserved.
[
Top
]