HISE Logo Forum
    • Categories
    • Register
    • Login

    Help connecting button to parameter on Script FX while doing Content.getComponent();

    Scheduled Pinned Locked Moved Scripting
    7 Posts 3 Posters 21 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.
    • B
      Bicrome
      last edited by

      Hello, guys!
      Trying to fix my issue here I've been able to intercept the state of a button using Content.getComponent();
      But this only works if the button isn't connected to anything in the Parameter Properties ➜ processorId ➜ parameterId, or else I can't read the state of the button.
      BUT since I have disconnected my button from the parameter that i want to control (on Script FX for my case) I can't update its state.

      Is there any way to achieve both things, through scripting I guess?

      Btw this is a simple snipped of what I'm trying to do. If you press the button you can see how the console prints a message with the state of it, but if you connect it to the Script FX parameter like I said before, the console stops updating.

      HiseSnippet 1453.3ocuW80TabCDWmgChcRyTloS6qZxKwzgwXGhIPyvTB13hmF.SLkl2xHqSGmFeV5lSxAb6j26Gq9QJeCZWc5N66.CI0SZfY.Ks6p8m1+7Sq6EKoLkRFibpb9jHFx4Qt8mHzAsBHbApaajyO3d56YwJxnnPt3x1rPxjyYJM5fIQDkh4gbbV5WLJ6TdYTxOe7mOfDRDT1rsPnKjbJ607Qb8rc6s+uxCC6P7XmyGkS6mueWpTzRFJGC.aI25nHBcH4R1IDiZkbQGQTAHmezcaus1sYSx1zm2bKuF90q+rl6rM4Eaui+Vrsp2jzjs6tMZ5uKxYkC83ZYbeMQyTHmkOP5Moef7Jg0AWvU7AgLyhFn9fmsa2QF5YthlcQsB3gd8xhXJDbJ8lE+VxF+9N2i4d7o6OKN9sIBvyrHe.zoTQ3sTA30HO7pmCdyARN4fzxVHslaeZLOROShAOOzsqPyh8IPdJOTr5hJ8wRtCZIAUD5ZiHCYchgESMo510quAF9y5urRkJP1RowumDiO5L7d3LytjoaIGEIEvhpO4nydhQYt.piXX+wBplKEXo3nyNXrVCIbRX3.HQWklYzFvYFNlsN9OqTdyMaEvnCw5.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nY5.84bo6h3xG41gGBlmP1Uv5BWzDlQyJf2uj0ttpKLRgwyxrC5gty.dZM3oyJe9uh1CuFNHAIL2CS.4b1Xm2HXAY+BGdx3EBVB0oBUXInroLpq2MJumBdijajYVnXyhLpyWEt2QDZr7cT6yIlKzCR1ApvDIMakcO1rF23lyugPifYidGkV7ntkgOaQMbqE0vmunF1bQMb6E0vWrnFtym1PynqoLFlJc3EtdGlTD53j9EDMOdg9W.xrh3SB
      

      Thanks in advance!

      ChazroxC ustkU 3 Replies Last reply Reply Quote 0
      • ChazroxC
        Chazrox @Bicrome
        last edited by Chazrox

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @Bicrome
          last edited by

          @Bicrome What are you trying to achieve on clicking that button exactly? I tried your snippet.

          Small typo in there...

          Screenshot 2025-08-29 at 1.00.11 PM.png Screenshot 2025-08-29 at 1.00.44 PM.png

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

            @Bicrome Nope, it's not possible to use the processorId property at the same time with a scripted callback.

            Generally, you should go for a scripted callback and don't use the processorId property, unless you are absolutely sure the button will never do anything else.

            Once you get a reference to the scriptFX you'll be able to set its parameters like so:

            HiseSnippet 1566.3ocuW80SabDDeOCGI1IMpQpp80U4k3TgL1TJAZTUALPA0.Xhoz7Vz561iaEm205t8B3Vk26Gq9AneX52f1Y18Ne2YLgD21fk.1cmYmeye1ey3dwJOdRhJl3z3rwi3DmG51erTG1MjIjjC2k37Utm7VdbBa3nHg7hc4QrwmwSzjcFOhkjv8INNK7invN0WjX94u9gcXQLoGuXKB4bkvi+RwPgtX2da8Shnn8Y97yDCKI8ZacnmR1UEoRAfsfaaxHl2krK3GyPwp4RNfkDRb9Z2NquZvy6r1.3ylqt9ZrAAazdiNc1bSFey.9p9qst2Fr1q0l3rzd9BsJtulo4IDmE2Q4Oten5Jo0.mKRDCh33hNj9fksauuJxGcQbWR2PQjeu7HVBAtkdEwuErwuuv8HguXx9EwwO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xsw9DSP9MAWCvGZuhEmN2yscK3CY6HXxBjXPjU1BIEyd8TQiGEpjBObKqD4Pe6gpTjEwh+hZ9cxyO4tBLI5YLQD9DneZBPK5ehrObOlwewRviU9v+cu8YdPLebOFxs7XWjXEpa4ws7lT+VwMJJgvfucv2JBfYrd4CefbhFKkOzrEbfOMzPFBiL6r.dtM5Ygj0lpIyiPpfwurDFKIyrwUIAlFWXUzGIxVBQ1RtZlLrJldf6P3usLGLKfjoycXtZkfG9zNeEH7QB441VQtX0C4H10SV2AVi.6dt1spbvt7.VZjtxdjRsrfEkMZsRFco6xn807QYkbS.wip7sxlo42NUqfv0ju9x+VS9P28EQf5F5uJZOs0aOsya3OwUP2gZ165vjywSgg3xuK3k1slXxpUKlcl7w5A6cMbQRVTo1W.Ed9voS4BPUx4SOQhYPDI2PxlTcIw916P+odJLwAvSlJiMWwmcTpKGxLbfy0.ReRXrGx7hUuwy1DBct6a1ApBklGo0cOBWS6byo9FBST8FOupW0MTb04UwuYdUbs4UwucdUb84UwmOuJtwcqHNvaFqBV0C8E6smoHzwI66Uhs7H+Cvv9cCq
            

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

            1 Reply Last reply Reply Quote 1
            • B
              Bicrome @Chazrox
              last edited by

              @Chazrox nevermind i figured it out, kinda
              i'm guessing i could use a global cable

              i guess i just needed a rest.
              that can help finding lots of problems lol

              I"ll check the snipped in the morning

              so my issue has been solved

              ChazroxC ustkU 2 Replies Last reply Reply Quote 1
              • ChazroxC
                Chazrox @Bicrome
                last edited by

                @Bicrome great news! 🙏

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

                  @Bicrome A global cable to set a scriptFX attribute is a bit overkill ☺

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

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

                  23

                  Online

                  1.9k

                  Users

                  12.4k

                  Topics

                  107.9k

                  Posts