You'll have to combine events and scripting. You cannot access addon sdk properties, expressions, etc... from scripting.
What you can do is create 2 local variables in your event/group.
Set those variables using events. You can use events to access your plugins expressions.
Then access those properties through localVars in your script.