Re: LUTs Tool, Changing the icons ?
Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/LUTs-Tool-Changing-the-icons-tp3703235p3703238.html
I discovered a bug in the macro. Here is an update.
Cheers,
G.
//---------------------->8------------------------
var GLlut=0;
macro "Look Up Tables Tool -
C900L222eCf00L323eCfa0L424eCff5L525eCce6L626eC7f0L727eCbfdL828eC6ddL929eC79fLa2aeC60fLb2beCd0dLc2ceCf8fLd2deCfcfLe2eeCfffLf2fe"{
}
macro "Look Up Tables Tool Options" {
requires("1.34j");
restorePreviousTool();
}
macro "Look Up Tables Tool Selected" {
if (isKeyDown("shift"))
GLlut-=1;
else
GLlut+=1;
if (GLlut<0) GLlut=3;
if (GLlut>3) GLlut=0;
if (bitDepth()!=24){
if (GLlut==1) run("Fire");
else if (GLlut==2) run("Spectrum");
else if (GLlut==3) run("Ice");
else if (GLlut==0) run("Grays");
}
wait(20);
restorePreviousTool();
}
//---------------------->8------------------------