[Solved] How to set unique ID of VST3 plugin dynamically?

Hi Yvan … thx for your answer.

I don’t have a problem assigning unique CID to component … it’s already happening in GetPluginFactory() function.

static const PClassInfo2 componentClass (JuceVST3Component::iid,
                                                 PClassInfo::kManyInstances, ...

I don’t know how and where to assign my custom ID to JuceVST3Component::iid (which is provided as a parameter to componentClass). Currently, DEF_CLASS is used to set JuceVST3Component::iid, but it can be used only statically.

I hope i understood your answer properly and i hope my questions are clear enough.

Sorry for maybe trivial questions - i am not really good with VST3 SDK, JUCE is successfully hiding most of the details from me, but in this case i have to learn things better :slight_smile: