Hi Michael,
Thanks a lot for your answer, it works like a charm!
I really need to think more about this call("class.method") method.
More or less connected to my previous question, I saw something unexpected (at 
least for me).
Namelly when I perform a RoiManager.selectGroup(group) later on followed by a 
roiManager("select", index) I was expecting that the group selection gets 
deselected with only the single chosen index ROI being then selected.
But the group ROIs are only deselected by the use of a roiManager("deselect") 
method.
Have a nice end of weekend, 
Philippe

----- Mail original -----
De: "Michael Schmid" <[email protected]>
À: "imagej" <[email protected]>
Envoyé: Vendredi 21 Juin 2024 12:16:29
Objet: Re: roiManager("indexes")

Hi Philippe,

there is no macro command RoiManager.getSelectedIndices. This is only a 
java command).

What you can do in a macro:
   indexes=split(call("ij.plugin.frame.RoiManager.getIndexesAsString"));

Michael
________________________________________________________________
On 21.06.24 11:26, CARL Philippe (LBP) wrote:
> Dear all,
> With the macro instruction RoiManager.selectGroup(group) I can select a bunch 
> of ROIs which have previously be set as being part of a given group.
> How can I then get the indexes of the selected ROIs ?
> RoiManager.selected gives me only the number of selected ROIs.
> As roiManager("index") gives me only "the index of the first selected ROI if 
> more than one is selected".
> Thus it seems that a macro instruction like roiManager("indexes") is missing.
> Or is there an alternative method that I may be missing ?
> Thanks a lot in advance for your help.
> My best regards,
> Philippe
> 
> Philippe CARL
> Laboratoire de Bioimagerie et Pathologies
> UMR 7021 CNRS - Université de Strasbourg
> Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
> Tel : +33(0)3 68 85 41 41

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

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

Reply via email to