Slug It Out 2 Hack

I am a baby coder, but I've been trying to figure out if it would be possible to build a plugin version of Processing that would render to a layer in another motion graphics or compositing application, and if so, what would this entail? I've never developed an AE plugin, but I do want to learn how. (I have a couple of much simpler ideas to start out with ;-)