Yes. I just checked the Calculator function and it seems worked. I will try to experience more with the tool.
Thanks very much! Jing ________________________________ From: Scott, W Alan <[email protected]> Sent: Tuesday, November 4, 2014 2:58 PM To: jlih; [email protected] Subject: RE: [EXTERNAL] [Paraview] Possibilities of using different color ramps for different extractions of the same dataset? Your question obviously has to do with python scripts, however in ParaView this can be done using the Calculator filter. We just create another copy of the data with a different name - and then ParaView will allow you to use a different color table for this second array. Could you do something like that? Or, did I miss your point? Alan From: ParaView [mailto:[email protected]] On Behalf Of jlih Sent: Monday, November 03, 2014 8:17 PM To: [email protected] Subject: [EXTERNAL] [Paraview] Possibilities of using different color ramps for different extractions of the same dataset? Dear all, I am creating extractions from a NetCDF data. I am wondering if I can create separate color ramps for different extractions of the same array for comparisons. I tried the process within Paraview Desktop but I was not able to set different color ramps because the array name is the same for all extractions. Sample code: SetActiveSource(ncreader) ExtractSubset1 = ExtractSubset() ExtractSubset1.VOI = [0, 50,0, 50,0, 8] DataRepresentation1 = Show(ExtractSubset1) DataRepresentation1.Representation = 'Volume' DataRepresentation1.ColorArrayName = ('CELL_DATA', varname) DataRepresentation1.ColorAttributeType = 'CELL_DATA' DataRepresentation1.LookupTable = GetLookupTableForArray(?varname... Any suggestions? Thanks, Jing
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
