HISE Logo Forum
    • Categories
    • Register
    • Login

    How to set Button Variables without code

    Scheduled Pinned Locked Moved Scripting
    6 Posts 2 Posters 120 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.
    • 1
      11235813
      last edited by

      How would I set a variable to a button without using the Code Editor? I already have the buttons made and don't want to make new ones.

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

        @11235813 I don't quite understand what you're wanting to do, can you give more detail?

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

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

          @d-healey Y'know how some times you have to write a script that says:

          const var button1 = Content.addButton("button1", 0, 0);

          I'm trying to do the "const var" part without using the code editor.

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

            @11235813

            You're trying to write a script without using the script editor?

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

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

              Oh I think I understand. You need to use getComponent.

              const myButton = Content.getComponent("myButton");

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

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

                @d-healey thx

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

                52

                Online

                1.7k

                Users

                11.7k

                Topics

                102.2k

                Posts