Changing the kCanAutomate

Hi,

We need some clarification about the usage of kCanAutomate flag.

If a plugin need to change this flag dynamically, meaning as a result of user trigger we change parameter that initialize with the kCanAutomate to kIsReadOnly.

Do we need to trigger restartComponent with kReloadComponent or restartComponent(Steinberg::Vst::kParamTitlesChanged | Steinberg::Vst::kParamValuesChanged) should be enough?

Thanks

Hi, the documentation about the RestartFlags has all info you need:
https://steinbergmedia.github.io/vst3_doc/vstinterfaces/namespaceSteinberg_1_1Vst.html#a17867782006f9fdb2b72c16b0420bed5
So you only need kParamTitlesChanged to change the automatable and readonly flag.

1 Like

Check too this section in the documentation:
Parameters and Automation - VST - Steinberg Developer Help