Create Script Reference
-
Hey!
I have this button in a separate script and I'd like to create a script definition for that button in my interface so I can control the button. I was able to get the parameter by creating a script def for the script definition itself and doing this:
script.parameter;
But this is just the value of the parameter, it doesnt allow me to change the value of that parameter
Thanks!
-
@Casmat you can do it at least 2 ways
if you're going to change the "other script button" only with one another button, you can link the "controlling button" to it in the Property Editor, like this:
You have to make a reference to the "other script processor" and then choose it in "processorID" and chose the "parameterId" for that buttonor you can use this as a reference if you want to be able to control it in several places in you script
const var AnotherProcessor = Synth.getMidiProcessor("Another Processor"); AnotherProcessor.setAttribute(AnotherProcessor.button, value);
HiseSnippet 907.3oc0V0saSCCE1tqFQKv.D7.D0qBRiQKLFHgPzstNnB1ZnYLfqFtItKVKwtJwAnBgDOf7vva.bb9YIcDMJE3B5EQ87q+7wemisUnzgEEICQ3FGLaJCguLwdlP40yixEnA6fvqR1iFoXgFop1d1TZTDyEgwq7TsBbi5njee6IaS8oBGVgJD5PI2g8Bd.WUn0p6y4996RcYGvCJ48FcG3HE8j9xX.OqPZilRcNgdLaep1sZDD9B8c4JYnshpXQHb8sktyr8jePj5+g7H9XelVnCxFRTp5ck9tZDq+OpmG220JeeGgfrXUTEVIsJbSxdbW9o5KpFWKwfQQDkqG3ZmG75rjvqVI3UOEdWmX6DxmpJrnw1kHCDvA0DJbDTFVo9hpYUizSBdHTqGPOgsaHHbZDla1t8ZFvma8nlMgigHkw6ovgN3Snze6XkRJLdrQdBNlo5IClJEffYq47pkNC24NMN3Y8MFBeFYX2az.qCLrFMrWea6giJk+sDRkGK7zMBrDI7O8BL2QfYqLWKp8kWnrk30a81lbgOWvLlDKbTb.zZJUI3kIX5jC+0.f3GytUyO0rwYgy5QL0VJUHebrhY9SVGmjw7D7nleF.zBUgz4MSUOpu+XfmaVMNgrVZmruTwFJLSvZyO2z3rllLoRaY4xmEVoYcaX34EnoHNXLKrbkR6HvGmmvegEiv6jVhJ4nTLPvUCmxxjKZI5TQKAJqFCMG3LDBtpRZMVMq0HsHh3PRtJY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