And here comes another one I cannot figure out:
I just tried to change the actual name of a Fader object upon receiving sysex. I set up a Fader with a script.
When I script ...
Code: Select all
decl FaderName=Fader;
setattribute(FaderName,'unit',arraytostring(subarray(MIDI_ARGS,Start2,Start3-Start2-1)));
.. the display in "unit" is exactly what I sent via Sysex. Start2 and Start3 are variables I defined before by searching the correct places in the Sysex with a while loop. But this works!
But when I script ...
Code: Select all
decl FaderName=Fader;
setattribute(FaderName,'name',arraytostring(subarray(MIDI_ARGS,Start2,Start3-Start2-1)));
... Fader label still reads Fader. Note, that I used the variable to define the name of the fader object to be able to change it after the name became changed. Why is this not working? The attribute 'name' is mentioned in the manual, so it should work the same way as with the 'unit'-variable, shouldn't it?