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:


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