ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linking 3D rotation to a fading opacity

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nick Huskey
Linking 3D rotation to a fading opacity
on Jan 10, 2013 at 7:34:28 pm

I have created this effect, and slowed down the video in order to see the opacity change.

Opacity Fix Video

So far I have a null object called "rotate" with an image layer parented to the null object and the text layer parented to the image layer.

I researched and set up an expression so that when the image layer falls in between the null objects rotation perimeters, in this case it is the z rotation of -9˚ and 10˚, the opacity goes from 15 to 100.

I used this expression here:

wheel = thisComp.layer("rotate").transform.zRotation;
if(wheel>-9&&wheel<10){
100
}else{
15
}

My issue is, I would like the opacity to fade from 15 to 100 instead of jump abruptly. Is there anything to add that can help me out?

wheel = thisComp.layer("rotate").transform.zRotation;
if(wheel>-9&&wheel&lt;10){
100
}else{
15
}


Return to posts index

Dan Ebberts
Re: Linking 3D rotation to a fading opacity
on Jan 10, 2013 at 8:45:37 pm

This would cause it to ease in and out over a range defined by easeDeg:


minDeg = -9;
maxDeg = 10;
easeDeg = 2;
wheel = thisComp.layer("rotate").transform.zRotation;
if(wheel < (minDeg+maxDeg)/2)
ease (wheel,minDeg,minDeg+easeDeg,15,100)
else
ease(wheel,maxDeg-easeDeg,maxDeg,100,15);



Dan



Return to posts index

Nick Huskey
Re: Linking 3D rotation to a fading opacity
on Jan 10, 2013 at 9:50:56 pm

Excellent, that works out great. Thanks so much!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]