Macro cannot change and keep options for "Point Tool"
Posted by
AAM71 on
Oct 30, 2018; 4:28pm
URL: http://imagej.273.s1.nabble.com/Macro-cannot-change-and-keep-options-for-Point-Tool-tp5021377.html
Dear Listers,
Sorry for so many questions but I am again having a problem.
If I use "Point Tool" (from ImageJ menu) manually I can set quite
successfully any type, color, size and other options (that you can see
after double clicking). If I try to repeat the same thing with macro
(after using Macro Record to get parameters names) then some settings
are reverted to default (type is always "hybrid", size is always
"small"), and options like "Add to overlay" or "Add to ROI Manager" do
not work.
Macro below demonstrates that:
newImage("New", "RGB ramp", 512, 512, 1);
setTool("point");
run("Point Tool...", "type=Hybrid color=Yellow size=Small add_to");
makePoint(118, 161);
makePoint(157, 258);
makePoint(203, 325);
run("Point Tool...", "type=Crosshair color=Red size=Large add_to");
makePoint(98, 161);
makePoint(137, 258);
makePoint(193, 325);
Sincerely,
Alex Mironov
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html