Re: LUTs Tool, Changing the icons ?
Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/LUTs-Tool-Changing-the-icons-tp3703235p3703237.html
On Thursday 30 March 2006 15:38, Tony Collins wrote:
> Could you use the isKeyDown("shift") to cycle backwards?
Yes, good idea. Below is the new version.
If anybody wants to add more LUTs, change the 3s in
if (GLlut<0) GLlut=3;
if (GLlut>3) GLlut=0;
for the number of LUTs-1.
Cheers,
Gabriel
//-------------------->8--------------------
var GLlut=0;
macro "Look Up Tables
Tool-C900L222eCf00L323eCfa0L424eCff5L525eCde7L626eC7f0L727eCbfdL828eC7ffL929eC58fLa2aeC60fLb2beCd0dLc2ceCf8fLd2deCfcfLe2eeCfffLf2fe"{
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");
}
restorePreviousTool();
}
//-------------------->8--------------------