Hi all,
I’m trying to figure out a way to be able to set min & max values for a set of parameters and then be able to have an additional offset control that will offset both values but retain the difference between the two.
Currently i have a constant CHOP set up to control values in both a LIMIT and MATH chop, i’m then trying to use an addition in another MATH to scale these but eventually the values squish together. For example when min reaches zero, max continues to scale. The desired behaviour is that if min can go no further, the max value cannot either…keeping the range that’s been set. I wonder if there’s a simple way to achieve this? Where the difference remains betwen the min & max
Many Thanks
J
Hi @Jono.r23,
Not sure where the values come from, so in this example I’m just using constant CHOPs but I would have a Constant CHOP for the value which will be clamped, followed by a Limit to take care of the clamping.
Then a Constant CHOP with the min/max values which are exported to the min
and max
parameters of the Limit CHOP. Plus also a Math CHOP where the offset to the min and max is added to.
Looks like this:
Hope this helps
Markus