I want to use a VST which is capable of writing out MIDI - Groove Agent is an example - and write midi data out. To Logic.

I haven't seen a way to to this, so I would be forced to run Cubase, load up the VST, set it up the same, write out the MIDI data, export it, load up Logic, import it and carry on. A bit of a long way to go!

T*