Copy & Paste plugin within Daw

Does anyone know how to properly write a function that allows copy and paste of a Vst within a DAW?

Currently the state of the plugin is reset.

Are you properly serializing and deserializing your plugin state in your AudioProcessor’s getStateInformation and setStateInformation functions?



Nice Catch,
I was able to fix the problem and many more!
An update I did a month ago broke my function!