> On Feb 10, 2024, at 6:03 PM, Norbert Vischer <[email protected]> wrote:
> 
> Hello all (Wayne?),
> 
> In the following macro, I
>    setMetadata("label", s)
> to three stack slices.
> Now the top of "Show Info..." correctly remains empty.
> However,
>    getMetadata("info")
> should remain empty, but unexpectedly returns "SliceComment3"

The latest ImageJ daily build (1.54i14) fixes a bug (feature?) where the 
getMetadata("info")
macro function would return the current stack slice label when the image’s 
"Info" property
was null.

-wayne


> close("ABC");
> close("Info for ABC");
> print("\\Clear");
> newImage("ABC", "8-bit white", 400, 100, 3);
> for(slc = 1; slc <=3; slc++){
>    setSlice(slc);
>    setMetadata("label", "SliceComment#" + slc);
> }
> info = getMetadata("info");
> print(info);
> run("Show Info...");

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

Reply via email to