Passing information to a macro from a plugin

Posted by simon andrews (BI) on
URL: http://imagej.273.s1.nabble.com/Passing-information-to-a-macro-from-a-plugin-tp3688079.html

I've written a plugin which calculates a value from an image.  Someone now wants to use this plugin from within a macro.

I can configure the plugin from the macro by using Macro.getOptions() and parsing the string they pass in, but what I need now is a way to return a value (or preferably values) from the plugin and send it back to the calling macro so it can be used elsewhere in the macro.

I'm sure there must be an easy way to do this, but I've not found it in the documentation.

Can anyone enlighten me?

Thanks

Simon.