|
Re: LUTs Tool, Changing the icons ?: msg#00306java.imagej
Thanks Gabriel, Once I'd changed the single ' to double " in the first macro, it worked. I'm not too bothered about the icon remaining as it is flicking throught the different LUTs, although it would be fancy to have them change with the LUT. That would of course require designing a new toolbutton for each LUT. I've changed two things for myself: -I've assigned a function key [F2] to cycle through the different LUTs -I've replaced one of the LUTs with my own specific LUT (pointer to a file in the plugins folder) In the course of playing around with these LUTs I learned that the image I use a lot to test things, Blobs, in fact has an inverted Grays LUT. This caused me some headaches yesterday. Must be Wayne's idea to keep us focused, ;-) //-------------------->8-------------------- var GLlut=0; macro "Look Up Tables Tool-C900L222eCf00L323eCfa0L424eCff5L525eCde7L626eC7f0L727eCbfdL828eC7ffL929eC58fLa2aeC60fLb2beCd0dLc2ceCf8fLd2deCfcfLe2eeCfffLf2fe"{ restorePreviousTool(); } macro "Look Up Tables Tool Selected [F2]" { if (bitDepth()!=24){ if (GLlut==0){ run("Fire"); GLlut++; } else if (GLlut==1){ open("C:\\Program Files\\ImageJ\\plugins\\Lookup_Tables\\Spect2-MCID.lut"); GLlut++; } else if (GLlut==2){ run("Ice"); GLlut++; } else if (GLlut==3){ run("Grays"); GLlut=0; } } restorePreviousTool(); } //-------------------->8-------------------- Bo Gabriel Landini wrote: Hi, -- R.P.J. de Lange, PhD Rudolf Magnus Institute of Neurosciences P.O. box 80040 3508 TA Utrecht The Netherlands visiting address: Stratenum, room 4.241 Universiteitsweg 100 3584 CG Utrecht tel: +31-30-253 8924 +31-30-253 8837 (lab) fax: +31-30-253 9032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | LUTs Tool, Changing the icons ?, Gabriel Landini |
|---|---|
| Next by Date: | Re: LUTs Tool, Changing the icons ?, Tony Collins |
| Previous by Thread: | LUTs Tool, Changing the icons ?, Gabriel Landini |
| Next by Thread: | Re: LUTs Tool, Changing the icons ?, Tony Collins |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |