<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi<br>&nbsp;&nbsp; I've a case where the users can load .xml files saved from the Paraview's 'Edit Color Map' widget and apply the color maps (containing R,G,B and Opacity values) to volume rendering.<br><br>When I start the application a call is made is load a "default.xml" file and then do a :<br><br>Lut = pv.GetLookupTableForArray({arrayname : "ImageFile", num_components : 1, HSVWrap : 0, NanColor : nanColor, RGBPoints : rgbPoints, ColorSpace : colorSpace});<br><br>Sof = pv.CreatePiecewiseFunction( {Points: sofPoints});&nbsp;&nbsp;&nbsp; <br><br>The variables nanColor, rgbPoints, sofPoints etc are populated by the XML file data. Then the Lookuptable is applied to the DisplayProperties for volume rendering. This part works well. <br><br>However when the user changes the .xml color map file from a drop down, the same code is called again and this time it does
 something funny. It seems to retain the previous RGBPoints information and adds the new color map to it. So the two lookup tables look like they are merged. Is this expected ?<br><br>Is there a way to reset the lookup table ? I did not see any obvious call within simple.py or pwsimple.py.<br><br>Thanks<br>Raj<br></td></tr></table>