Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change value every X frames

  • Change value every X frames

    Posted by Cypert Costa on January 27, 2017 at 10:13 am

    Hello, I’m trying to do a image that reacts to the audio, the image has two states, the deafult and one that activates when a certain threshold is reached, I know how to do this but I only want to check if the threshold is reached every “X” frames. I have done a “ticker” that changes his opacity every 10 frames and it works, the problem is with the two state changing image. This is the code I’ve used:

    dato=(effect("Both Channels")("Slider"));

    if(thisComp.layer("tick 30 frames").transform.opacity==100){
    if(dato>12){
    value=100;
    }else{
    value=0;
    }
    }

    It analyzes the expression correctly when the ticker activates but when the first if is false it doesn’t keep the value. Can you help me?

    Cypert Costa replied 9 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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