ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

opacity with expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Saso Goricar
opacity with expression
on Aug 13, 2019 at 11:27:43 am

Hi,

I'm creating a motion graphic template. Is it possible to make the shape opacity the way that opacity will be controlled with two sliders?
First, with checkbox controller you can turn opacity on or off, at the same time, when opacity is on, you can control opacity with a slider?
I know it is easier to create just one slider and drop the opacity to 0%, but I wonder is this possible with some kind of expression?

Thanks for the answers.

Saso


Return to posts index

Dan Ebberts
Re: opacity with expression
on Aug 13, 2019 at 3:35:10 pm

Something like this should work:

cb = effect("Checkbox Control")("Checkbox").value;
s = effect("Slider Control")("Slider").value;
cb ? s : 0


Dan



Return to posts index

Saso Goricar
Re: opacity with expression
on Aug 13, 2019 at 6:09:23 pm

Hi Dan,

this works perfectly.

Thanks,
Saso


Return to posts index

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