Looking at the list of available macro extension functions for 3D Roi Manager, I didn’t find an obvious way to get such a listing from a macro.
@ThomasBoudier please correct me if this is wrong.
When using any of the more powerful full-fledged scripting languages however, you can access the public Java API of the
RoiManager3D_2 class and access its list of objects directly. The following Groovy script illustrates this:
manager = new RoiManager3D_2()
new WaitForUserDialog("Add some objects, then press OK").show()
Note: because the RoiManager3D doesn’t register with ImageJ’s
WindowManager (which should be best practice for plugins that create new dialog windows), I didn’t find a way to access an existing 3D Manager window. Hence I had to start a new plugin instance and use a dialog to wait for user input. If someone knows a more elegant way, please suggest…