ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Re: Ramp up opacity with Z position

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Kevin CampRe: Ramp up opacity with Z position
by on May 14, 2012 at 6:43:02 pm

a simple one using ease could be something like this:

maxZ = 500; // this would be the z position where the layer would not be visible
ease(Math.abs(position[2]), maxZ, 0, 100, 0)


if you wanted more control over the fade falloff and the amount of distance that the layer could stay at 100% opacity, then this might be better:

noFalloff = 200; // this would be the 'zone' where the layer would be 100%
decay = .005; // use this to adjust how quickly the layer fades in/out
d = Math.abs(position[2]);
value/Math.exp((d-noFalloff)*decay)


-- the later expression is is based on dan ebbert's light falloff expression here, if you'd like a full description of what it's doing:

http://www.motionscript.com/design-guide/falloff.html

Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]