rollover button for max

    Dec 20 2009 | 5:19 pm
    Hi everyone, I am looking for a button that will output when a mouse is moved over it (not when it is clicked) for max, anyone got any ideas for an object or a work around? Many thanks and happy holidays!

    • Dec 20 2009 | 6:13 pm
      textbutton outputs 1 when you put the mouse over it.
    • Dec 20 2009 | 9:42 pm
      Max 5 also gives you the [hover] option, which can output the scripting name of objects when you roll over them. It works for most objects (except comment I think). With [hover] you can make pretty much anything rollover.
      There are also some other objects which send out messages/values on mouseover, like ubutton and tab. for ubutton you need to tell it to track mouse dragging, so it'll send out coordinates. jit.pwindow also sends out the mouseidle coords, see the helpfile.
      Along these lines, is there any way to get mouseover info from non-rectangular objects? I was thinking maybe with pictslider or fpic, if there were transparent areas, the rest could react to [hover] and provide a non-rectangular "hotspot". Guess I should just try it.
    • Dec 20 2009 | 11:24 pm
      perfect, many many thanks!
    • Dec 20 2009 | 11:59 pm
      with [lcd] it is also easy