Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › ‘If’ Expression problem

  • ‘If’ Expression problem

    Posted by Joshua Northeast on October 5, 2012 at 9:38 am

    Hello, I’m making a video with a 3D graph using the Shatter Effect to make 3D columns. I’m wanting to animate the extrusion to make the bar grow. What I’m trying to do, is when the extrusion is set to 0, the opacity also turns to 0, therefore making it invisible when it is just a flat plane. So I wrote an ‘IF’ expression for the opacity (see below), but for some reason, the opacity always stays on 100!

    It would be great if you could tell me what I’m doing wrong!

    ed = effect("Shatter")("Extrusion Depth")

    if (ed = 0)
    transform.opacity = 0
    else
    transform.opacity = 100

    Joshua Northeast
    Jnortheast Films

    Dan Ebberts
    replied 13 years, 11 months ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 5, 2012 at 3:23 pm

    Try your if this way:

    if (ed == 0)

    Dan

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