[Paraview] place of colormap ...

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Mar 13 14:11:16 EDT 2017


If your intention is to make the colormaps available to the client
connecting to a pvserver running on your cluster, then alas, there's no way
currently. You'll have to provide your color maps to the users so that can
import them on their desktops.

If your intention is to use the color map is python scripts, then you can
do the following:

from paraview.simple import *

ImportPresets(filename='/tmp/MyCustom.json')


# To use the color map, get color transfer function/color map for an
array e.g. 'RTData'

rTDataLUT = GetColorTransferFunction('RTData')


# Apply a preset using its name. Note this may not work as expected
when presets have duplicate names.

rTDataLUT.ApplyPreset('MyCustomColorMap', True)



Utkarsh


On Mon, Mar 13, 2017 at 4:43 AM, <u.utku.turuncoglu at be.itu.edu.tr> wrote:

> Hi,
>
> I just want to add additional color map to ParaView but I don't have
> access to GUI (it is installed to a cluster with NVIDIA EGL support). So,
> I just wonder that which file must be edited to include colormap manually.
> Is it lib/site-packages/paraview/ColorMaps.xml? If so I could not see my
> new colormap in that file when I look at my laptop installation. It must
> be somewhere else but where?
>
> Thanks,
>
> --ufuk
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170313/4fd82284/attachment.html>


More information about the ParaView mailing list