creating macros, calling plugins...
Posted by Peter Gregson on Aug 26, 2008; 12:12am
URL: http://imagej.273.s1.nabble.com/creating-macros-calling-plugins-tp3695289.html
How do I call plugins, especially external ones, from a macro? The
real question is how do I know the order of the arguments in the
argument string, and the names of them? For example, calling
"Deriche" is easy
run("Deriche ", "alpha=1 display");
I used Macro->Record... to capture this. It works, byt how would I
know to inoke "display" in the string when there is a check-box in the
GUI for it?
When I try to invoke Image->Scale... it passes the arguments that I
select in the GUI. However, when I invoke Plugins->Morphology, all I
get in the macro Recorder window is
run("Morphology ");
without any of the arguments that I selected in the Morphology
plugin's GUI.
What is the difference between these plugins? How can I determine
what arguments I need and how to invoke them when calling a plugin,
either from a macro or another plugin?
Best regards,
Peter