Button Script not working...
-
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 OKCan anybody help?
-
@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?
-
@d-healey Thank you, I must have missed that in the docs