Hi Michael, Generally, the ImageJ macro language can call a public static function in a Java class.
https://wsr.imagej.net/developer/macro/functions.html#call The specific function for changing the brushsize for the Selection Brush tool is setBrushSize https://github.com/imagej/ImageJ/blob/master/ij/gui/Toolbar.java#L1020 ``` setForegroundColor(0, 0, 0); brushWidth = 4; call("ij.gui.Toolbar.setBrushSize", brushWidth); ``` However, are you instead asking about the "Paintbrush Tool"? Cheers, Will Giang ________________________________ From: Cammer, Michael <[email protected]> Sent: Monday, December 1, 2025 10:20 AM To: [email protected] <[email protected]> Subject: brush options and macros When I double-click on the brush and change the option, it doesn't get recorded. I also tried searching for "brush" at https: //urldefense. com/v3/__https: //wsr. imagej. net/developer/macro/functions. html__;!!Ls64Rlj6!2sWpJOCPhH_n9GxsAcOu2ToE1DDaSaVKz6xCmH0jcY6N2idSSjAdmiO025j8h9vvgsvkiUgLqByuYmG2lY7HoDwpRy4Eqe5YPMvrfbc$ ZjQcmQRYFpfptBannerStart Attention:This email originated outside of Penn State Health. Use caution when clicking links or opening attachments. <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/Ls64Rlj6!MOltBSMz04XsB7y4gQaKswbIHou4gVWugcmlmmyBwsYBhZZnyZZVHo4WPitmd4smzGsCbPQZwUB4KnwJOH-Lva_C9Z8xNhDrfgb1cwdoIob0XNEb0l9SCf44lw9cSItdGs0cCjQeGIEfAaZXOHc$> Report Suspicious ZjQcmQRYFpfptBannerEnd When I double-click on the brush and change the option, it doesn't get recorded. I also tried searching for "brush" at https://urldefense.com/v3/__https://wsr.imagej.net/developer/macro/functions.html__;!!Ls64Rlj6!2sWpJOCPhH_n9GxsAcOu2ToE1DDaSaVKz6xCmH0jcY6N2idSSjAdmiO025j8h9vvgsvkiUgLqByuYmG2lY7HoDwpRy4Eqe5YPMvrfbc$ 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 NYU Langone Health, 540 First Avenue, New York, NY 10016 Office: RB (formerly Skirball) 4-102 -- call if door is locked (phone near elevators) Office: 646-501-0567 Cell (voice only, not text): 914-309-3270 [email protected]<mailto:[email protected]> https://urldefense.com/v3/__http://nyulmc.org/micros__;!!Ls64Rlj6!2sWpJOCPhH_n9GxsAcOu2ToE1DDaSaVKz6xCmH0jcY6N2idSSjAdmiO025j8h9vvgsvkiUgLqByuYmG2lY7HoDwpRy4Eqe5Y_n0u_7k$ https://urldefense.com/v3/__http://microscopynotes.com/__;!!Ls64Rlj6!2sWpJOCPhH_n9GxsAcOu2ToE1DDaSaVKz6xCmH0jcY6N2idSSjAdmiO025j8h9vvgsvkiUgLqByuYmG2lY7HoDwpRy4Eqe5Y-mu9_HY$ Scheduling the time you want is far more reliable by phone call. Why not provide your phone number? ______________________________________ This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email. -- ImageJ mailing list: https://urldefense.com/v3/__http://imagej.nih.gov/ij/list.html__;!!Ls64Rlj6!2sWpJOCPhH_n9GxsAcOu2ToE1DDaSaVKz6xCmH0jcY6N2idSSjAdmiO025j8h9vvgsvkiUgLqByuYmG2lY7HoDwpRy4Eqe5YinO5pzU$ -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
