Button COMP > call single click() when hover

Hi.
Another UI challenge I am facing in a Kinect project. I need to use a Momentary Button COMP in a different way.
Essentially I need to create a single click() (execute a python script) whenever a user simply hovers over the button.
The view state changes so there must be some way to detect this. The documentation for Button COMP class doesn’t really help TouchDesigner Documentation

Hey @art3mis,

have a look at the Panel Execute DAT. It comes with callbacks for what you need. Especially onOffToOn(panelValue) coupled with the panel value inside or rollover will do the trick.

hope this helps
Markus

Awesome, thanks! Will have a look.

1 Like