// This macro demonstrates how to start and stop // Image>Stacks>Orthogonal Views, how to set // the views, and how o detect if it is running. run("Close All"); newImage("Demo1", "8-bit random", 256, 256, 100); setLocation(50, 100); run("Orthogonal Views"); for (i=50; i<175; i+=2) { Stack.setOrthoViews(i, i, 50); wait(50); } waitForUser("Press OK to continue"); // Is Othogonal Views running? id = Stack.getOrthoViewsID(); if (id!=0) Stack.stopOrthoViews(); newImage("Demo2", "8-bit ramp", 256, 256, 100); selectImage("Demo2"); setLocation(500, 100); run("Orthogonal Views");