Forum
    • Categories
    • Register
    • Login

    HISE_USE_SCRIPT_RECTANGLE_OBJECT

    Scheduled Pinned Locked Moved General Questions
    8 Posts 5 Posters 41 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.
    • dannytaurusD
      dannytaurus
      last edited by

      Where do I add the preprocessor definition for the Rectangle class? And other app-wide devs too?

      In the top-level Xcode (macOS) box:

      CleanShot 2025-12-24 at 11.08.40@2x.png

      Or in each of the Debug, Release, etc. boxes:

      CleanShot 2025-12-24 at 11.09.34@2x.png

      Or both?

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @dannytaurus
        last edited by

        @dannytaurus top level

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

        dannytaurusD 1 Reply Last reply Reply Quote 1
        • dannytaurusD
          dannytaurus @David Healey
          last edited by

          @David-Healey Thanks 👍

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

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

            @dannytaurus But is it still necessary for the rectangle? I don't seem to have the preprocessor though I am using the rectangle class extensively nowadays...

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

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @ustk
              last edited by David Healey

              @ustk

              https://docs.hise.audio/scripting/scripting-api/rectangle/index.html

              Note that for backwards compatibility, HISE will still use the JS arrays for all methods or callbacks that return a rectangle (eg. ScriptComponent.getLocalBounds() or the obj.area property in LAF functions). In order to change that you can enable the preprocessor HISE_USE_SCRIPT_RECTANGLE_OBJECT=1 , then it will return a Rectangle object for the full experience.

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

              ustkU 1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @David Healey
                last edited by

                @David-Healey Silly me...
                I was doing this all the time...

                local rect = Rectangle(obj.area); //...
                

                facepalm.gif

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

                Oli UllmannO 1 Reply Last reply Reply Quote 3
                • Oli UllmannO
                  Oli Ullmann @ustk
                  last edited by

                  @ustk
                  Me, too! 😅

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

                    haha me too...

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

                    28

                    Online

                    2.1k

                    Users

                    13.1k

                    Topics

                    113.6k

                    Posts