Hi everybody
Anybody know if on a script is possible to make a slider (or knob) get the value after the mouse button release, not while its moving the control as it does by default? Something like does the ui_ update when a control is moved (it sync the knob in perfview not while its moving, but only when button of the mouse is release).
Cheers
KONTAKT - Get the value of slider after mouse button release
-
- KVRist
- Topic Starter
- 160 posts since 29 Apr, 2008
- KVRAF
- 23112 posts since 7 Jan, 2009 from Croatia
There's no way to detect mouse button release for slider movement. The same UI callback is executed when you click on the control, when you drag it, and when you release the mouse button, and there are no commands to discern between those 3 actions.
By the way, using ui_update is not advised, you can consider it deprecated and only there for backwards compatibility with some very old scripts. Having too many things happening in ui_update can unreasonably increase the CPU usage.
By the way, using ui_update is not advised, you can consider it deprecated and only there for backwards compatibility with some very old scripts. Having too many things happening in ui_update can unreasonably increase the CPU usage.
-
- KVRist
- Topic Starter
- 160 posts since 29 Apr, 2008
That's is what I though. Thank you for the confirmation and the extra info