HISE Logo Forum
    • Categories
    • Register
    • Login

    Scripting Panel loging value

    Scheduled Pinned Locked Moved General Questions
    10 Posts 3 Posters 320 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.
    • A
      arminh
      last edited by

      Im not familiar with Script Panel, is there option to log choosen values from dropdown?

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

        @arminh what do you mean by "log"?

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

        1 Reply Last reply Reply Quote 0
        • A
          arminh
          last edited by

          Oh sorry im mainly frontend dev...

          I mean Console.print();

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

            @arminh Panel.getValue() I think

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

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

              @d-healey i tried this but without success. Panel controlCallback not responding for any action.

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

                @arminh Did you check out the panel tutorial in the HISE docs?

                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

                  Here you go

                  const var Panel1 = Content.getComponent("Panel1");
                  
                  Panel1.setMouseCallback(function(event){
                      Console.print(event.result);    
                  });
                  

                  It's also possible to get item text directly - https://docs.hise.audio/scripting/scripting-in-hise/scriptpanel.html#the-mouseevent-callback

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

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

                    @d-healey event.result throws an error here, but trace(event) works

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

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

                      @ustk Works here, did you set the panel to be a popup menu?

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

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

                        @d-healey Oh I see, sorry... I've only seen the mouseCallback and not properly read the question :)

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

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

                        16

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        103.1k

                        Posts