Skip to main content
gdg59535
Participant
May 15, 2021
Question

opacity on off expression

  • May 15, 2021
  • 2 replies
  • 13052 views

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 has been closed for replies.

2 replies

Dan Ebberts
Community Expert
Community Expert
May 15, 2021

This should work:

Math.floor(timeToFrames(time)/10)%2 ? 0 : 100
Participant
February 6, 2022

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

Dan Ebberts
Community Expert
Community Expert
February 6, 2022

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

Mylenium
Legend
May 15, 2021

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