Hi Michael,
if your question concerns the Paintbrush Tool:
In principle, this tool has a public method to set the width (only for
the brush, not for the pencil). This method would be also callable from
a macro:
brushwidth = 15;
call("ij.plugin.tool.BrushTool.setBrushWidth", brushwidth);
Unfortunately it does not work unless the "Brush Options" dialog is
open. I'll write a suggestion to Wayne to make it work also if the
"Brush Options" dialog is not open.
Michael
________________________________________________________________
On 01.12.25 16:20, Cammer, Michael 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.
If this can be set from a macro, would someone please point me to the commands?
Thank you!!
Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html