macro to plugin

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

macro to plugin

quantumlottie
Hello

I was wondering if there is any way to send information collected from
the user in a macro to a plugin which can then use the data.

My macro collects data to find an image. I then run a plugin to analyse
the image but will need to user to input the same data again. So ideally
I could get the plugin to retrieve the data so the user only needs to
input it once.

Lottie


========================================================================
http://www.international-marine.com   International Marine Coatings.
http://www.international-pc.com       International Protective Coatings.
http://www.yachtpaint.com             International Yacht Coatings.
========================================================================
Confidentiality Note:

This message, including attachments, is confidential and
may be privileged. If you are not an intended recipient,
please notify the sender then delete and destroy the original
message and all copies. You should not copy, forward
and/or disclose this message, in whole or in part, without
permission of the sender. If you receive this e-mail message
in error please notify us immediately by e-mail at [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: macro to plugin

Wayne Rasband
> I was wondering if there is any way to send information
> collected from the user in a macro to a plugin which can
> then use the data.
>
> My macro collects data to find an image. I then run a plugin
> to analyse the image but will need to user to input the same
> data again. So ideally I could get the plugin to retrieve
> the data so the user only needs to input it once.

Add a GenericDialog to the plugin that inputs the needed data, then run
the plugin with the command recorder to generate the code needed to
call the plugin from a macro. The macro at

      http://rsb.info.nih.gov/ij/macros/ArgumentPassingDemo.txt

demonstrates how to use string concatenation to pass arguments to
plugins that use a GenericDialog.

-wayne