Move Objects between ScriptProcessors
-
I need to get objects from the Interface processor to the NoteCallbacks processor.
Here's the hierarchy:
the objects are in this format:
obj = {"ons": [1,2,3...], "offs": [1.2.3...]};
There's no problem to store them in a panel on the Interface script processor like this:
Panels.setValue(obj);
but it doesn't work to store them in a panel like this:
NoteCallbacks.setAtttribute(NoteCallbacks.OnAndOffsPnl, obj);
And it's not possible to transfer them by linking 2 panels together in the Property Editor
And it's impossible to read them from the NoteCallback script processor
Any tips how to accomplish this is appreciated! -
@ulrik use the
global
keyword. -
@Christoph-Hart Yes of course, how could I forget that?
Too many eastern drinks maybe 🤪
Thank you Christoph and happy holidays!