Share variables between ijm and py macros

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Share variables between ijm and py macros

Guillaume Azarias
Hi all,

Is there a way to exchange variables (number or images) between ijm and py macro ?

For instance, I want to measure a time (t) in an ijm macro, use this variable in a Python macro, and send the results of the Python macro to the initial ijm macro.

Any idea ?

Best,

Guillaume

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Share variables between ijm and py macros

ctrueden
Hi Guillaume,

> Is there a way to exchange variables (number or images) between ijm
> and py macro ?

You can call a script from a macro using the eval function:
  http://imagej.net/developer/macro/functions.html#eval

Regards,
Curtis

On Mon, Dec 14, 2015 at 7:17 AM, Guillaume Azarias <[hidden email]
> wrote:

> Hi all,
>
> Is there a way to exchange variables (number or images) between ijm and py
> macro ?
>
> For instance, I want to measure a time (t) in an ijm macro, use this
> variable in a Python macro, and send the results of the Python macro to the
> initial ijm macro.
>
> Any idea ?
>
> Best,
>
> Guillaume
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html