impossible to access midi modules and control some parameters of the sample osc

Not sure I understand what you are trying to do.

Do you have an Envelope template and you want it to be linked to currently selected zone?

You can find more info about editing scope here:

Here’s an example preset. It has a simple UI script that creates a string list parameter (variable) used to set the scope.
Amp Envelope.zip (10.7 KB)