Mouse state with a specific object (slider)

May 30, 2011 at 9:19pm

Mouse state with a specific object (slider)

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.

#57352
May 30, 2011 at 9:25pm

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

#205524
May 30, 2011 at 9:31pm

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

#205525

You must be logged in to reply to this topic.