macro "Load ROI Set to Manager" { /* v230724 Added replace/append option */ roisN = roiManager("count"); if (roisN>0) resetROIS = getBoolean("Replace the " + roisN + " ROIs currently in the manager?", "Replace", "Append imported set"); else resetROIS = false; roiPath = File.openDialog("Select ROI set to open"); if (File.exists(roiPath)){ if (resetROIS) roiManager("reset"); roiManager("Open", roiPath); } }