[Closed] Custom Slider Controller
I have created a path-follow slider that works slightly differently than the slider manipulator that comes with max. What i need, is to be able to assign the spline “ticks” like an actual slider or script actual % values for the slider so that it snaps to certain percentage values for the path as its moving along. (ie. jump from 10% to 50% to 100% etc)
Another idea was to create custom snap parameters for an object so that when it moves along a certain axis, it moves in user defined intervals.
Or is it possible to enable through maxscript, the default interface “snap to pivot/grid etc)” for specific objects only?
Anyone have any idea how to approach this? I just want a custom slider to act like max’s slider; which lets you customize the snap.
Thanks
there’s a few ways you could do this, incidentaly a path constraint actually needs values between 0 and 1 if you were controlling with wire parameters and a slider. you’d need to either set the range between that, or provide an appropriate multiplier.
If you wanted to perform a custom snap that was non incremental, ie 10, 50 ,100 rather than 10,20,30, etc you could have an integer slider to with a range representing the number of snaps you needed. You could then use a case statement (or an if/then/else)to check the value of the the slider’s output when it is changed and set the path constraint accordingly – roughly speaking –
case slider.value of
(1:path.percent = 10)
(2:path.percent = 50)
(3:path.percent = 100)