HISE Logo Forum
    • Categories
    • Register
    • Login

    Not working: getMinValue() and getMaxValue()

    Scheduled Pinned Locked Moved Bug Reports
    19 Posts 6 Posters 152 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey @Oli Ullmann
      last edited by d.healey

      @Oli-Ullmann said in Not working: getMinValue() and getMaxValue():

      By the way, it is no longer possible to tag you here. Maybe that's intentional. :-)

      @Dominik-Mayer Looks like tagging is broken when there is a . in the username.

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Oli Ullmann
        last edited by

        @Oli-Ullmann yeah, your best guess is to just write a panel that does the same thing. I've never actually used the range slider function and with the latest modulation & plugin parameter gesture rewrite I'm assuming single value use at too many places.

        Also I would have to change the data model in the user preset system to store two values for a slider element and if you do it with a panel you can easily do just that.

        I'll cook something up and put it in the snippet browser.

        d.healeyD Oli UllmannO 2 Replies Last reply Reply Quote 0
        • d.healeyD
          d.healey @Christoph Hart
          last edited by

          @Christoph-Hart said in Not working: getMinValue() and getMaxValue():

          I'll cook something up and put it in the snippet browser.

          Maybe remove the option for creating a range in the property editor if it's no longer supported.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @d.healey
            last edited by

            @d-healey Ah yes good idea. Will do at the next commit.

            1 Reply Last reply Reply Quote 0
            • Oli UllmannO
              Oli Ullmann @Christoph Hart
              last edited by

              @Christoph-Hart

              All right, thanks for the info. I'll try using a panel.

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @Oli Ullmann
                last edited by

                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 UllmannO 1 Reply Last reply Reply Quote 3
                • It_UsedI
                  It_Used @Oli Ullmann
                  last edited by

                  @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
                  
                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @It_Used
                    last edited by

                    @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.

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

                    It_UsedI 1 Reply Last reply Reply Quote 1
                    • It_UsedI
                      It_Used @d.healey
                      last edited by

                      @d-healey i've see this later, after post publishing.

                      ChazroxC 1 Reply Last reply Reply Quote 0
                      • ChazroxC
                        Chazrox @It_Used
                        last edited by

                        @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.

                        It_UsedI 1 Reply Last reply Reply Quote 0
                        • It_UsedI
                          It_Used @Chazrox
                          last edited by

                          @Chazrox into online docs available new UI Snippet, this range slider based on panel, you can use it! This is time economy, Homie)

                          1 Reply Last reply Reply Quote 0
                          • Oli UllmannO
                            Oli Ullmann @Christoph Hart
                            last edited by

                            @Christoph-Hart
                            This looks and works great!
                            Thanks very much for taking the time to create the snippet! :-)

                            1 Reply Last reply Reply Quote 0
                            • ustkU
                              ustk
                              last edited by

                              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?

                              Hise made me an F5 dude, browser just suffers...

                              Christoph HartC 1 Reply Last reply Reply Quote 0
                              • Christoph HartC
                                Christoph Hart @ustk
                                last edited by

                                @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.

                                Christoph HartC 1 Reply Last reply Reply Quote 0
                                • Christoph HartC
                                  Christoph Hart @Christoph Hart
                                  last edited by

                                  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.

                                  1 Reply Last reply Reply Quote 1
                                  • First post
                                    Last post

                                  26

                                  Online

                                  2.0k

                                  Users

                                  12.6k

                                  Topics

                                  109.8k

                                  Posts