edit:
nevermind…i had keyboard focus enabled…so the pattern editor was losing focus when i was opening a vsti.