This is tricky, I have loaded a Child VST inside my main VST. And now, I want to pass a value when something is clicked in the Child VST to the Host VST.
One idea I had is to create a Timer class that checks for a certain parameter, if it changed, I ask the VST what has changed and it tells me. A bit nuts, but it works.
I use the setStateInformation for that. I pass a very long variable with CMD02 in the start, the Child VST checks for that and returns the data in the actual *data pointer. I do this to check the Child preset-name and some extra info, works perfectly.
Of course, unless there’s an easier way to do this that I just don’t know… :oops: