I am trying to write a script in Jython to work with the ROI manager and change the line color of the ROIs drawn on the detected particles. The two key lines are:
rm = RoiManager.getInstance() rm.runCommand("Set Color", "yellow")
This produces a “ROI Manager” dialog box with the prompt:
Apply changes to all 43 selections?
I need to click “OK”. Is there a way to turn off the prompt? I tried
rm.allowRecording(True) and that did not make a difference.
What am I missing?