-
How to limit the values of a property to a specific range?
Hi, I’m having trouble applying an idea I had in my composition. I will try to explain my idea as objectively as possible. I have a circle where the scale values are linked with the pick whip on another object, I want to do the following:
If the scale assumes a negative value, the scale value will be equal to 0. This will make the scale never be negative, that is, the scale will only assume positive values. How do I do that?
I put this in my circle’s expression code:
temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
[temp, temp]
if(temp < 0) temp=0Did not work. There was an error.