Login  Register

Re: command default settings in a macro

Posted by Fco. Javier Diez Guerra on Sep 22, 2019; 9:21pm
URL: http://imagej.273.s1.nabble.com/command-default-settings-in-a-macro-tp5022452p5022454.html

Dear Gabriel,

Thanks for your input.

I have already tried what you suggest:

run("Rotate... ", "angle=0.4 grid=20 interpolation=Bicubic");

However, in this case, the command is executed right away.

On the other hand, when the macro

run("Rotate... ");

is run, the Rotate command is not executed. The macro just opens a
window that lets you modify the settings before excuting the command.

I have a set with a lot of images to be rotated. Each one needs a
different angle of rotation, but the same grid size and interpolation
settings. What I am trying to avoid is to change the grid size and
interpolation settings every time I open a new image, before finding the
right rotation angle and running the Rotate command. The rotation angle
needs to be manually adjusted for each individual image.

Best

Javier


El 22/09/2019 a las 22:33, Gabriel Landini escribió:

> On Sunday, 22 September 2019 19:18:30 BST [hidden email] wrote:
>> I would like to know how default settings for a given command can be
>> changed within a macro.
> Hi, run the Macro Recorder before calling the command, and it will show you
> how you call all the parameters in the command dialog.
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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