ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Change value every X frames

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Cypert Costa
Change value every X frames
on Jan 27, 2017 at 10:13:15 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){

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?

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved