I'm sorry to bump this old thread, but I have a related question to the subject.
I'm doing some tests for a new plugin which outputs some audio, and I would like to access the 'context' variable of the Audio plugin to do it, but I can't find the way to do it.
The info in this post (http://c2plugins.blogspot.com.es/2014/02/reuse-ace.html) is very useful (thanks, rexrainbow!), but I still don't know how to access these kind of variables, the ones declared as "var context = null". These variables seems private to the anonymous function of each plugin/behavior. Is this correct or can I do what I need?
Thanks a lot!