Forums > MaxMSP

Mouse state with a specific object (slider)

May 30, 2011 | 9:19 pm

Is there a way to report whether the mouse is clicked on a certain object, in my case slider. Object mousestate reports when the mouse is clicked anywhere in the patcher window, I’m looking for a way to do that with one or more specific sliders. I have data coming in my sliders, and want the stream to stop when it’s clicked and output new slider values and resume the stream when released.

thanks.


May 30, 2011 | 9:25 pm

Try giving your [slider] object a name and using a combination of [mousestate] and [hover].


May 30, 2011 | 9:31 pm

Nice one, thanks! Didn’t know this trick.


Viewing 3 posts - 1 through 3 (of 3 total)