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

Re: Simple expression problem

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: Simple expression problem
by Ben Heusner on Sep 24, 2009 at 4:42:13 am

You're right to apply it to Opacity. Sorry, I should probably have been clearer and not assumed so much. Your reading of the expression was bang on, but you didn't apply the data you got to the final result.

Here's the final expression:

a=thisComp.layer("Arrow").transform.rotation;
if (a>=360) a=a%360;
if (a<180 || a>240) 100 else 50


So what we're doing is feeding in the data we get from rotation%360 into your final if/else.

Does that make sense? And more importantly, does that work how you want it to?

Cheers,
Ben

Curious Turtle Pro Video
Training | Editing | Support
Out Now - Film Wash Color Effects Vol. 3
for After Effects & Apple Color


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


Current Message Thread:


Related Threads:
Very simple Opacity/Position expression (Help please!)   |   Simple Rotation Controls Opacity Expression?   |   Newbee to Expressions (simple Opacity control)   |   Simple text expression   |   Why doesn't this simple expression work?   |   Simple Postion Random Expression   |   Simple Expression help..   |   position constrain - AE expression limitations - simple question for experts   |   simple position expression   |   simple position expression!



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]