Not working: getMinValue() and getMaxValue()
-
Alright there you go:
https://docs.hise.dev/tutorials/ui/index.html#range-slider-panel
You'll need the latest commit, I've added a small helper function that makes the text input parsing easier.
-
@Oli-Ullmann not working
ScriptSlider.setMinValue()
slider callback triggered if LMB is up. functions for get values not working too.Snippet:
HiseSnippet 1151.3ocsV0sahaDEdbR71Eq1Uck1K6EVbEoMh0.IjzVU0z.IszcIAsjj16hFrO.ixvLV1CIPqx6Vej5aP6YFaisSHaWgTsDRb9+aNy4mYPjzGhikQDKmKWFBDqO2d3RgZZmoTlfzqKw5U18owJHxMg0IKCowwP.wxZ6eVyvpxNDy2e+imP4TgOjyhPtVx7g2ylwT4bGb76Xb9Yz.3R1rBZu+w87khNRtbNhmss8HgT+aoSfyoZ01xl7Kz3oDqu1tYiVdMaO9fliOpYqVGbf29sGMtYCOuCaGz5aaMJ.Z3621yiX8hSCXJYzPEUAwnSOQFrb3T48hj.bMKlMhCZhFjgXjSXS5LkwCFjkbhIDqcFjmp1NIU8F69r.1J94oruzHvM2hhIMqsJCocJAoFEgjWAHcljGncfVk0.OqBvamD38Z6g9QrPUtDM1dIdcxDW0qDlRTjr0Wsi8aeqae5sf6U8p6zQJTfPUeFx3rHjnGRGMl5C0NxyaOWLCu6263flzE74zHvMlyBfn5N38XrBoB9.ULAFZ359CtYNjFD7NgbTspk0n5dtM8z+PuloZLnO.gPjhAwHHl8qCu37mZnye53heUU3Qu524VM4DsRpQFKPK4IVZjs.EgwNgXYQhX0RtwkFqxzGDT7RReM+dfFIP4qzGDAWS4ygKDcinSPIMxhe705igOkWTc7l2n9.Y37PcbNA3x6yhy8r.0TsOVgmo.axTUIDht3RXg5D4hBNdFcgwtCqmeRfvgr+vbXZjEfYrf.NF7XlhI0mi16uxf.XLcNWYfWpDmGz23kyg56n9zEF0pgA7YzfIRznYVQSGJmOB6vq6vDbl.bGOW3qQgKV8TxdcwPjjWyWNKTJvxh8buS6qcwq8JNUPeMHhITZl0cpfZGK4P8PMuZUw.iGX2uwck00mT.N6hRpVGK5WrNsxNVIZUEQdkJNOjWdh5zIyfmTUtq9bmh8rCasm4royIluBIgykJrJpVxo7AG2GKZ730JK0ibHZsh0Cci9XFVSLe1HHpTNFUDGrTdxk8yO4p3vT+jTUAEkhdBl5hPP7byyHo4W7eW0qKUQ0i3R4kON.40EtCWvjLvqhcWH9VkLzna5kBNGTYj9J6hyDHr.8b5xWEjEnSdwaRWcsrHgYJ.w5yrMpSdT6uVyrMd4c4E4VtMW6HSaNwzeqUbQphIs2kBcd6cQOh82qVc9W2bbVycRFsbWcwUuE6oKxOldGzSLHBvRV8JgXecIzuME.tlj7z8K3VNYvbNUUd0m9QAoBzgt3ZF85CABokEezvi2Gt8m19v0Ty7IBwWaOfo7mtdLt0ZvHV68+AFSeEwWXe53wfuJGf6Xe1u+QexvlG9OHmqXhI8opHFV9Xe97YCwWa4CXzEBfq6ps1R2+kP6oo0Yfg3VMCw+feoBanosRE1HSHVXhkN23mLKQ+1jWZ3fXRXdGWE7EHHsaCxckKBI5xV1M99kc0SLr4lZXqM0v82TCOXSMr8lZ3gapgG8eandd2OMWImkz1PH8GbpY3rk0olAhlpUx+BLtBncJ
-
@It_Used said in Not working: getMinValue() and getMaxValue():
not working ScriptSlider.setMinValue() slider callback triggered if LMB is up. functions for get values not working too.
As discussed above, the range slider is no longer supported and shouldn't be used. Use a panel instead - check Christoph's last post above.
-
@d-healey i've see this later, after post publishing.
-
@It_Used way better to just script your own using a panel like Dave suggested. I wasted a bunch of time trying to get that thing to work properly for what I needed, I just ended up scripting my own.
-
@Chazrox into online docs available new UI Snippet, this range slider based on panel, you can use it! This is time economy, Homie)
-
@Christoph-Hart
This looks and works great!
Thanks very much for taking the time to create the snippet! :-) -
Where do you find
RangeSlider.js
? I can't target it from the snippet browser or or the Project Directory, neither from a finder search...Loading the snippet works fine, but as soon as you recompile, the include can't be found
Am I stupid or?
-
@ustk Hmm, yes that's weird, usually it should just reload the script that's embedded into the snippet. I'll check what's wrong there.
-
Alrighty, that's fixed now, not sure where this regression came from, but it didn't treat embedded script files correctly and assumed that the file was deleted - I vaguely remember a fix a few months ago regarding non-existent files that might have caused this.