I’m looking for a way to check whether an image has a point selection made using the multipoint tool. I know of is(“area”); and is(“line”); for area and line selections, but I can’t seem to find anything for point selections. I can think of an ugly workaround for my use-case, but I wanted to know if anyone knew of an easy way to check this. Alternatively, if there’s a way to just check for a selection being present in general on an image, that would also work for me. This is an issue because sometimes when counting cells, there will be no cells of a given type in the image, causing an error when my script tries to continue with ROI manager commands.
Answered my own question. Using selectionType() you can check for value of 10. Perfect!