I am making custom components and in the parameters I can create a custom slider.
I know I can set a default value for the slider, and min/max and clamp it, but is there a way to set points along it that the slider can soft snap to as I slide past it, before being able to be moved on?
Is there any way to do this or a technique that would achieve a similar result?
if the intervals are regular, you could create such a channel by using a Pattern CHOP setting the Type parameter to “Square” and the From Range parameter to -1 and 1. Now append a Speed CHOP and turn off it’s Timeslice parameter on the Common page.
Adjusting the number of cycles you can now control how many steps there should be. You can also normalize the result by appending a Limit CHOP, enabling the Normalize parameter.
Finally feed the output of your slider into the first input of a Lookup CHOP and the result of your Speed or Limit CHOP into the second input.
For irregular intervals, I’d recommend modeling the curve with the help of a Animation COMP and then setting the Play Mode parameter to “Output Full Range” and otherwise using the output with a Lookup CHOP as described above.