reset script on configuration change

Post Reply New Topic
RELATED
PRODUCTS

Post

Hi,

I'm working on a Linnstrument clip launcher. The Linnstrument comes in two different sizes and I want to be able to use the same extension for both. Ideally, I'd like to have a configuration option to set the size.

Depending on the actual size of the hardware, I aquire some buffers and do various initializations that can't easily be undone (some of the things only happen during the init phase). This means I effectively have to restart the extension when the user changes the device type at runtime.

Is there a way I can make my extension reload itself? Like typing "restart" in the console? I don't find any calls like this in the API.

Post

That is currently not possible.
The solution is currently to create 2 scripts which just set the size and import the main script file (use the "load" function).

Post Reply

Return to “Controller Scripting”