Change the number of parameters

Hi,

I’m working on a plugin that has variable number of parameters.
The documentation clearly says that this isn’t possible:

Please note that it is not allowed to change this assignment at any time.

However, in this video:27.49 the same question has been asked, and @Yvan said it clearly that it’s possible using restartComponent.

I tried restartComponent(kParamTitlesChanged) with Cubase 12 but it didn’t work.

So the only way it works now is by creating many hidden parameters, and update them when needed then call restartComponent(kParamTitlesChanged). But this is a very bad solution and it doesn’t work in other DAWs (it’s their fault).

So does anyone have any idea about this?

Regards,

Osama