Multiple hover objects in one patcher
Is possible to have multiple hover objects in the same patcher that affects individual objects (such as sliders or buttons). As it functions right now, the hover object changes all objects that match the outlet’s criteria (has script name, doesn’t have script name).
I am working on a button controller that will save certain variables and swap images for these roll over states.
You shouldn’t need it: [hover] reports the scripting name as well, so you can use [select] to change specific objects, because no two objects can have the same scripting name. You can have multiple [hover] objects, but that won’t help you—they’ll all behave the same way.
In general, for button controllers with hovering states, you can probably use [ubutton] instead, on a per-object basis, and swap the images manually. But [hover] could keep things cleaner and in a central location.
Thanks for the quick response. What you said makes sense. Now what I was thinking about doing was setting up a single [patcher] where I would pass the [pict] objects through to execute appropriate functionality (track states, swap images, etc). But within each [patcher] instance, there would would be a [hover] object.
I guess I am really trying to create an abstraction that I can use for each button of my tool (Which are images). An issue I am having in my [patcher] object is hover it only triggering locally in the [patcher] and not sending the hover message through the outlet.
I will try your ubutton suggestion, but I am curious if this can be recreated in the manner above.
Note: I am also not seeing a way to pass [pict] objects to my [patcher], as it only wants to connect to my outlet.
Just do something like this each time you want to have a button with a hover state.
----------begin_max5_patcher---------- 536.3ocsTssiaBCD8Y3q.4moHLjaa+UVsJx.SHdKXirMnrZ09uWeChoMsMYU WoH6LWLdNm43483HTE+BHQIeO44jnn2iihrtLNh71Qndxk5NhzlFpGjRRKfR cwTvEk0OoVQmfp1ZdGWjjm4+gylyjM1yGUcfx9cvduCDU8YJq8n.pUt5.+zS Y4oI6JLq3xslsBsQxK9y39Lp2F.2APnkPzFawvqd8a3MA2LkMewEdmR0ac1y iPFGeDGaVR+uxBEa2lEr744B7A659OMWf+B4hNMhyT711tE9XhHXjd3OE99g +l.zi241xCfeUKmY4ZW9FZ1vPq1vA4up+3NStImqKgYOH.IvTDEkyBqz6izW zeCDglLTf3HvHUNlFeq9A9F26ivFyn6w3jJR8OZE7QVSXMrhi9meCIYBZNRT JAsZTAW+mzKb7JGiznaD3mlcO6Ojk53r1+h7YUtxybg5dSdtiUbiX8ZMsE+Z n86QAcex2q4mNgR0aZEwKtDsuWl27OdrLitdX+5zUqJ23e8KJIeTTOKmlGek bkfa.ohxVThOuHwBx4LsoArg8P.0SaF3TlxWCE4Gx1llbXus8sw.00Fk11ao IoxftaCUZzsV8Q9MmPb2nB+kgpMEA.YkwChJWqiLLLABouxr.RO16U2Kh8oV SJyYZKLj.lny4WZ8PD5AZJ862QgSedYman.pm2.B1H0p3hM27Gw+D.3SE6. -----------end_max5_patcher-----------
Forums > MaxMSP