forked from micro-manager/micro-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenPluginsAndMDA.bsh
More file actions
30 lines (25 loc) · 861 Bytes
/
OpenPluginsAndMDA.bsh
File metadata and controls
30 lines (25 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// It can be nice to open some windows and plugins automatically on startup
// This script gives some examples how to do this.
// Add this code to your MMStartup.bsh script
// Nico Stuurman 2025-06-03
// Show MDA dialog
mm.uiManager().getAcquisitionWindow().setVisible(true);;
// show Deskew plugin
plugins = mm.plugins().getProcessorPlugins();
for (plugin : plugins.values()) {
if (plugin.getName().equals("Deskew")) {
deskew = plugin.createConfigurator(null);
deskew.showGUI();
}
}
// show Snap-On-Move Preview
plugins = mm.plugins().getMenuPlugins();
for (plugin : plugins.values()) {
mm.scripter().message(plugin.getName());
if (plugin.getName().equals("Snap-on-Move Preview")) {
plugin.onPluginSelected();
}
}
// show Stage Control window
import org.micromanager.internal.dialogs.StageControlFrame;
StageControlFrame.showStageControl(mm);