Restore preset index and name in VST3

Hi folks,

I am using the “baked-in factory presets” feature with the VST3 versions of my plug-ins (using VST3_PRESET_LIST). “Sound-wise” restoring the saved state of the plug-in (for example when the DAW project is loaded) works fine, but the preset name and index are set to the index/name of the very first preset in the list. :roll_eyes:

Can somebody enlighten me how to tackle that problem (i.e. to restore not only the sound data but also preset name and index)? I assume the magic VST3 parameter “kPresetParam” is involved?

Thanks for any advice & Cheers
Björn

Faced with the same problem and would like to know if it is solved now?

I don’t think so. Since this is specific to “baked-in presets” I decided to generally store the preset index and name along with the preset’s chunk data. However, this needs a small twist in IPlugPluginBase.h and IPlugVST3_Common.h (and potentially IPlugVST2.cpp etc.) to call a specific Unserialize function handling the preset index/name.