Login  Register

Re: Setting plugin arguments from macros

Posted by ctrueden on Apr 22, 2014; 4:56pm
URL: http://imagej.273.s1.nabble.com/Small-Bug-in-Grid-Collection-Stitching-tp5007385p5007392.html

Hi Philippe,

> it is possible to set launching arguments as a String parameter

Use the Macro Recorder (Plugins > Macros > Record) to learn how to write
the code for a command you want to execute, including its arguments
(harvested from a GenericDialog).

See this page for details:
http://fiji.sc/Introduction_into_Macro_Programming#The_recorder

> Run("Radial Profile Angle", ("about"));

Like Herbie, I am not sure what you are trying to do there...

Regards,
Curtis


On Tue, Apr 22, 2014 at 9:09 AM, Philippe CARL <[hidden email]>wrote:

> Dear all,
> In plugins it is possible to set launching arguments as a String parameter:
> public void run (final String arg) {.....
> And for example in the Radial_Profile_Angle_Ext plugin there are two menu
> entries defined in a plugins.config file that are defining the following
> entries:
> Plugins, "Radial Profile Angle", Radial_Profile_Angle_Ext
> Help>About Plugins, "Radial Profile Angle...",
> Radial_Profile_Angle_Ext("about")
> And thus to run either one or other defined entry from a macro, it is
> simply
> done:
> Run("Radial Profile Angle");
> or
> Run("Radial Profile Angle...");
> My question: is it possible to directly run a plugin with a launching
> argument without defining it in a plugins.config file similarly to such a
> way:
> Run("Radial Profile Angle", ("about"));
> Or something like this?
> My best regards,
> Philippe
>
> Philippe CARL
> Laboratoire de Biophotonique et Pharmacologie
> UMR 7213 CNRS - Université de Strasbourg
> Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
> Tel : +33(0)3 68 85 41 84
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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