Clamping Sin function

Hi guys, I’m trying to use the clamp function to make the sin function to work on 2 specific numbers. For example, I’m trying to make an element to switch from 0 to 100 in the opacity section every second… one second 0 the next 100 the next 0, etc… Thank you in advance! :v:

1 Like

You can simply use this to make a object flash every second
((floor (((#Ds#/2) - (floor(#Ds#/2))) * 2)) * 100)


Thank you very much!

Just to learn more about those functions, what is the floor function for? Sorry for my ignorance… Just trying to learn… :wink:

If you go to this page you can read all the different commands and how they work it should help you a lot


Thank you very much!