Scripting Panel loging value
-
Im not familiar with Script Panel, is there option to log choosen values from dropdown?
-
@arminh what do you mean by "log"?
-
Oh sorry im mainly frontend dev...
I mean Console.print();
-
@arminh Panel.getValue() I think
-
@d-healey i tried this but without success. Panel controlCallback not responding for any action.
-
@arminh Did you check out the panel tutorial in the HISE docs?
-
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
-
@d-healey
event.result
throws an error here, buttrace(event)
works -
@ustk Works here, did you set the panel to be a popup menu?
-
@d-healey Oh I see, sorry... I've only seen the mouseCallback and not properly read the question :)