> On Dec 1, 2025, at 12:10 PM, Michael Cammer, wrote:
>
> When I double-click on the brush and change the option, it doesn't get
> recorded.
>
> I also tried searching for "brush" at
> https://wsr.imagej.net/developer/macro/functions.html and don't see commands
> for setting options via a macro.
>
> I'd like to put this in a macro to set it for 4 pixels and black.
You can do this using
setForegroundColor(0,0,0);
call("ij.plugin.tool.BrushTool.setBrushWidth",4);
but it only works if the Brush Options dialog is open. Thanks to Michael
Schmid, it works when the dialog is
not open if you upgrade to the ImageJ 1.54s9 daily build.
-wayne
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html