HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF: get a value of a knob by its id

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 424 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
      darkInteger
      last edited by

      Hi guys!

      In a custom LAF how can I get a value of a knob by its id?

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

        @darkInteger Do you want to get the value of the knob that the laf function is assigned to, or of a different control?

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

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

          @d-healey Basically I have like 10 knobs LAF assigned and I want to draw lines between its values for UI purposes.

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

            @darkInteger Could you post a snippet?

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

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

              @d-healey well, the code is a mess :S I am just started learning.
              But I know I can use obj.value to get the value but I don't know how to specify it with its id... what is the syntax?

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

                @darkInteger said in LAF: get a value of a knob by its id:

                I don't know how to specify it with its id... what is the syntax?

                If you have the value already, why do you need to get it by the ID? Generally you want look and feel functions to be self contained without relying on external data.

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

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

                  @d-healey THX!!!

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

                  40

                  Online

                  2.0k

                  Users

                  12.7k

                  Topics

                  110.0k

                  Posts