Rudolf,
Stack Sorter is not compatible with the macro language. You may be able to use Gabriel Landini's IJ_Robot to drive it, but it might be tricky. I have not tried. Another choice is to write macro functions for the stack operations that you need. For example:
function moveSliceForward(){
metaString = getMetadata("Label");
run("Select All");
run("Copy");
run("Delete Slice");
run("Next Slice [>]");
run("Add Slice");
run("Paste");
run("Select None");
setMetadata(metaString);
}
function moveSliceBack(){
metaString = getMetadata("Label");
run("Select All");
run("Copy");
run("Delete Slice");
run("Previous Slice [<]");
run("Add Slice");
run("Paste");
run("Select None");
setMetadata(metaString);
}
Bob
On Sep 25, 2011, at 7:51 AM, Rudolf Oldenbourg wrote:
> Is it possible to call a StackSorter function from a macro? Pressing a button in the StackSorter panel doesn't seem to be recorded in the Recorder.
>
> Rudolf
Robert Dougherty, Ph.D.
President, OptiNav, Inc.
1414 127th Place NE #106
Bellevue, WA 98005
(425)891-4883
FAX (425)467-1119
www.optinav.com
[hidden email]