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

Help for expression that lets a slider control counts...

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


Help for expression that lets a slider control counts...
by Marten Kopp on May 10, 2009 at 6:05:31 pm

Hi dear friends,

Once again I find myself in a difficult position. The thing this time is that I need an expression that needs to do some math for a slider.

I got 1 slider control witch controlles the zoom of a camera. It goes between 4 and 5 (in witch 5 makes the target full screen and 4 zooms out a little bit).

And I got another slider control witch is actually needed to count the times the first went from 5 to 4 and counterwise.

So SC1 starts at 5 and SC2 starts at 1. If SC1 goes to 4, SC2 needs to go to 2. And if SC1 goes back to 5, SC2 needs to stay at 2. But if SC1 goes back to 4, SC2 needs to go to 2.. etc.

Here something I tried:

hoogte = thisComp.layer("height").effect("Slider Control")("Slider");
yes = effect("SureTarget")("Slider").(value +1);
no = effect("SureTarget")("Slider");

if (hoogte = 5){
yes}

if (hoogte = 4){
no}


But that does not the thing I want.

Thanks for any help.


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]