@Christoph-Hart
Alright, so you're assigning it in the Property Editor. How to do it with scripts that allows for clearer code instead of relying on definition order? I saw there was a commit the other day, 555cd89 - - added virtual method to get the parameter index by ID . Does it address this?
Btw. I noticed a strange behavior of the Property Editor and widget selection when working with two scripts. This can be replicated in your snippet.
I opened an issue on GitHub, the forum won't let me upload the gif here (too big).
https://github.com/christophhart/HISE/issues/420