Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Setting Max and Min Values To Opacity

  • Setting Max and Min Values To Opacity

    Posted by Criis Daw on November 13, 2012 at 12:37 pm

    Can any on help me

    I am trying to set Setting Max and Min Values To Opacity where the opacity is linked to the layers scale

    so if a layer is scaled to 50% it is 50% transparent. Easy enough so far.

    but i want to set a min value of transpareny to 15% and a max to 85%

    so a scale above 85% will result in opacity of 85% no matter how much bigger it gets like wise smaller than 15% scale the opacity remains at 15%

    any help much appreciated

    Thanks

    Criis Daw replied 13 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 13, 2012 at 2:07 pm

    Something like this should work:

    s = transform.scale[0];
    clamp(s,15,85)

    Dan

  • Criis Daw

    November 13, 2012 at 2:38 pm

    thanks dan..
    i knew it had to be simple.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy