// This macro demonstrates how to start and stop // Image>Stacks>Orthogonal Views, how to set // the views, and how to detect if it is running. run("Close All"); newImage("Demo1", "8-bit random", 256, 256, 100); setLocation(50, 100); Stack.setPosition(1, 9, 1); run("Orthogonal Views"); Stack.setOrthoViews(88, 44, 9+1); waitForUser("Press OK to continue"); // Is Othogonal Views running? name = call("ij.plugin.Orthogonal_Views.getImageName"); if (name!="null") call("ij.plugin.Orthogonal_Views.stop"); newImage("Demo2", "8-bit ramp", 300, 300, 100); selectImage("Demo2"); setLocation(500, 100); run("Orthogonal Views");