SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE AFTER EFFECTS:
Home
Forum
Basics
Expressions
Tutorials
Podcasts
Motion Graphics
Training
Cinema 4D
FAQ
Re: Inverting, 0 -> 1 and 1 -> 0
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: Inverting, 0 -> 1 and 1 -> 0
by
Dan Ebberts
on Oct 10, 2009 at 9:30:14 pm
If you're trying to invert opacity, just subtract the value from 100.
In general though, if you want to convert one range of numbers to another, you can use the linear() method. For example, if "x" represents the value you want to convert, for opacity you could use something like this:
invertedX = linear(x,0,100,100,0);
Or, as you suggest, you could use it to invert 0 to 1:
invertedX = linear(x,0,1,1,0)
It's pretty versatile.
Dan
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
Inverting, 0 -> 1 and 1 -> 0
by Martin Löfqvist on Oct 10, 2009 at 7:07:23 pm
Re: Inverting, 0 -> 1 and 1 -> 0
by Dan Ebberts on Oct 10, 2009 at 9:30:14 pm
Re: Inverting, 0 -> 1 and 1 -> 0
by Martin Löfqvist on Oct 11, 2009 at 12:37:47 pm
Re: Inverting, 0 -> 1 and 1 -> 0
by Micah Haun on Oct 26, 2009 at 7:15:17 pm
Related Threads:
Inverting MT Keyframe - HELP PLEASE
|
expressions: inverting X and Y position
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
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]