Need help or advice ? Come to the Icy club ! - Every Wenesday morning from 9h30 to 12h30 - Francois Jacob Building - Main hall - Pasteur
Register

Synchronize LUT

by stef / Stephane Dallongeville

A small script to synchronize all LUT (color map and histogram) all of opened images from the current active view.

version 1 (last version):

download to use and modify in Icy. How do I use scripts ? A Problem ? ask the community.
Changelog for this version: initial version
// get all opened view
viewers = gui.getViewers()
// get LUT (look up table) from current view
lut = gui.getActiveLUT()

// current view exist ?
if (lut != null)
{
	// for all opened views
	for(i = 0; i < viewers.size(); i++)
	{
		// take the LUT
		v = viewers.get(i)
		l = v.getLut()
		// and set it from active view LUT
		l.copyFrom(lut)
	}
}

This script has no documentation. A Problem ? ask the community.



Icy script publication Id : T1R4O1