Re: Can you retrieve values from the Log window in a macro?
Posted by
Mario Faretta on
Oct 14, 2009; 6:28am
URL: http://imagej.273.s1.nabble.com/Can-you-retrieve-values-from-the-Log-window-in-a-macro-tp3690795p3690799.html
Hi,
I solved the problem just printing to a text file to be saved (or to
save the Log Window) and retrieve the values opening it and splitting
using the split(string, delimiter) function.
Another possibility is to update a string with delimiters that you can
use later to separate the different info.
Hope it helps
Mario
HoweLab wrote:
> Hi.
>
> I am writing a macro that uses a number of plugins (right now, I'm using
> Gabriel Landini's Convex Hull Plus extensively), all of which return values
> into the Log window. Is there some way of reading those values so the macro
> can use them for later steps? If not, is there a way for a macro to directly
> retrieve the value of a variable directly from the plugin code? I do not
> know how to program in Java, otherwise I would just make my own plugin and
> borrow the relevant bits of code.
>
> Thanks, in advance, for your help.
>
--
Mario Faretta
Department of Experimental Oncology
European Institute of Oncology
c/o IFOM-IEO Campus for Oncogenomics
via Adamello 16
20139 Milan
Italy
Phone: ++39-02574303054
email:
[hidden email]
http://www.ifom-ieo-campus.it