HISE Logo Forum
    • Categories
    • Register
    • Login

    Knob LAF - Curve line (or maybe use a bit of an arc?)

    Scheduled Pinned Locked Moved Scripting
    11 Posts 4 Posters 175 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 @DanH
      last edited by

      @DanH said in Knob LAF - Curve line (or maybe use a bit of an arc?):

      Rect.translated(Rect.withSizeKeepingCentre(obj.area

      I don't have an answer, you need @ustk for this. But have you seen the new Rectangle object?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @d.healey
        last edited by

        @d-healey I had not, looks useful. Still a rectangle though 😆

        Hoping @ustk can save the day!

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

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

          @DanH Day saved!
          knobArc.gif

          HiseSnippet 1215.3ocsV0raabCDlqs2zHg1fFz9.rvmjcTj0JYq3.if3eUqPrcDrRCJPPgAEWJIVwkTfKW6nVjGtdquA8Anu.8TuzCtCWtq1UUJ1sFM5fsl+93mFNbloqRRnQQRExo7alNghb9b2dSE5QGMByDnNGibdj6Y3HMU4YUc3zI3nHZ.xwY0uwnvozZnjO+wKODywBBMWEB8VIiPOkExz4Z6t+qXbdab.8MrvBdu89cHRwQRtLF3ypt0QSvjw3gzywF2VwE8s3nQHmMc8284D71jcZ4S2teqfmEzpOYWRyA3lAOeGbyju1pYylHmGbR.SKU8zXMMB.8PYvzdijWKrGvaYQr9bpQvG0CNYqZzQiX7ftYImHDxYst4opUsopu18LV.al97T1WlXvKOhhIMmUtMJ4WjR0ucJ4TfRqYozic6QTrI5bKF97UoZyYj+bTxZEshx08HoPSE5Zg3wz1JPnCHq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l22.299F3N22.aceC7Y22.28tCzrm9AwZYn8YCBcV2SR5s43bh.CUfIUqn+V5dc8E
          

          Can't help pressing F5 in the forum...

          DanHD 2 Replies Last reply Reply Quote 3
          • DanHD
            DanH @ustk
            last edited by DanH

            @ustk bravo! Thanks ♥ However in the snippet I'm getting an error on line 16:

            Script Processor1: Line 16, column 27: This expression is not a function! 
            

            EDIT - maybe you're using the shiny new rectangle function, will try again with latest HISE.

            EDIT EDIT - Nope, still get that error. What is 'Rectangle'?

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @DanH
              last edited by

              @DanH said in Knob LAF - Curve line (or maybe use a bit of an arc?):

              EDIT EDIT - Nope, still get that error. What is 'Rectangle'?

              Yes you need the latest HISE with the shiny new feature - develop branch.

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @d.healey
                last edited by

                @d-healey hmmm, thought I just did

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @ustk
                  last edited by

                  @ustk this is perfect, thanks so much ♥

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  1 Reply Last reply Reply Quote 0
                  • O
                    Orvillain @DanH
                    last edited by

                    @DanH said in Knob LAF - Curve line (or maybe use a bit of an arc?):

                    the lateral pointer bit is a rectangle

                    For avoidance of doubt, and as @ustk's snippet also says, it isn't a rectangle. It is an arc, which you can think of as a slice of a circle.

                    DanHD 1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @Orvillain
                      last edited by

                      @Orvillain In my original example it is a rectangle. In @ustk's solution it is an arc.

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      O 1 Reply Last reply Reply Quote 0
                      • O
                        Orvillain @DanH
                        last edited by

                        @DanH said in Knob LAF - Curve line (or maybe use a bit of an arc?):

                        @Orvillain In my original example it is a rectangle. In @ustk's solution it is an arc.

                        Yes. It never should have been is my point!😁

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

                        30

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.6k

                        Posts