Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Re: Defining Min and Max

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: Defining Min and Max
by Mike Clasby on Sep 23, 2008 at 2:39:38 am

Interpolation. Click that little triangle next to the pickwhip, then select Interpolation, and you'll see the forms (or see Help Files).

Anyway, if you trying to have the Z position (depth) to range from 2500 to 3500 as the opacity varies from 0 to 100 (I'm guessing that's what you want) then this would be an expression that works (on position):

x = position[0];
y = position[1];
z = linear(opacity, 0, 100, 2500, 3500);
[x, y, z]

So that third line is saying as the opacity varies from 0 to 100, then interpolate the z to be from 2500 to 3500. Linear is straigh proportional, and there are Ease form if that's what you want.

Is that what you want?



Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML 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. Read more...



Please post Expressions Code in the box below:


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]