HISE Logo Forum
    • Categories
    • Register
    • Login

    Button Script not working...

    Scheduled Pinned Locked Moved Scripting
    scriptingbuttonvst3
    3 Posts 2 Posters 22 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.
    • E
      eokeefee
      last edited by

      I'm trying to make it so when I press a button it bypasses a scriptfx, and does some logic I need to script. Right now I have it correctly bypassing the scriptfx, but when I try to do simple logic it doesn't call the function.

      //Bypass Button:
      Console.print("Check!");
      inline function onBypassControl(component, value)
      {
      	Console.print("Do Logic");
      };
      
      Content.getComponent("Bypass").setControlCallback(onBypassControl);
      

      The console output looks like this even after pressing the button multiple times:

      Interface: Check!
      Interface: Compiled OK
      

      Can anybody help?

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

        @eokeefee you can't use processor id assignment in the property editor and a control callback, it's one or the other.

        @Christoph-Hart this comes up so frequently that maybe it's a good idea to add a warning in the console when someone attempts this?

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

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

          @d-healey Thank you, I must have missed that in the docs

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

          33

          Online

          2.0k

          Users

          12.9k

          Topics

          111.9k

          Posts