Skip to main content
gdg59535
Participant
May 15, 2021 9:06 AM UTC
Question

opacity on off expression

sorry, i am a beginner  ...

 

i wanted to know if  i can make the opacity of a layer going on and off  (say 10 frames on and 10 frames off) with an expression  ?

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

Dan Ebberts
Community Expert
Community Expert
May 15, 2021 4:14 PM UTC

This should work:

Math.floor(timeToFrames(time)/10)%2 ? 0 : 100
Translate
Participant
Feb 6, 2022 3:07 PM UTC

Is there a way to randomize this across a long timeline instead of constant pulsing?

Translate
Dan Ebberts
Community Expert
Community Expert
Feb 6, 2022 3:32 PM UTC

Probably. Depends on what you mean though. What are you randomizing? What are the constraints?

Translate
Mylenium
Legend
May 15, 2021 2:36 PM UTC

Sure. Could be as simple as

 

Math.floor(time%10)*100;

 

which creates an alternating on/off animation every ten frames when applied to the opacity.

 

Mylenium

Translate