//macro "MoloCutter Action Tool - C000R11eeT4914M" { // //Define Input Dialog///////////////////////////////// Dialog.create("Enter Brightness Values"); Dialog.addNumber("Min:", 100); Dialog.addNumber("Max:", 5000); Dialog.show(); ////////////////////////////////////////////////////// //Get variables of Dialog///////////////////////// transfered in order of apperance in the dialoge Min = Dialog.getNumber(); Max = Dialog.getNumber(); //print("Values:", Min); //print("Values:", Max); ////////////////////////////////////////////////// path = File.openDialog("Select a File"); //print("Path:", path); dir = File.getParent(path); //print("Directory:", dir); run("Image Sequence...", "open="+path+" sort"); //Image Sequence of all Images makeRectangle(10, 248, 441, 327); //Beschnittmaske run("Crop"); //Beschneiden //run("Scale...", "x=0.65 y=0.65 width=286 height=212 interpolation=Bilinear average"); //Min = 100; //Max = 5000; setMinAndMax(Min, Max); //Kontrast und Helligkeit run("Fire"); wait(100); //If no wait the LUT is not applied properly run("Stack to Images"); //Einzelne Bilder aus Stack machen openImages = nImages(); //Anzahl der offenen Bilder //print(openImages); i = 0; //Schleife fuer alle Bilder while (i