logo       

Re: LUTs Tool, Changing the icons ?: msg#00309

java.imagej

Subject: Re: LUTs Tool, Changing the icons ?

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--------------------



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise