Re: [Paraview] place of colormap ...

2017-03-13 Thread Utkarsh Ayachit
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,  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
>
___
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


[Paraview] place of colormap ...

2017-03-13 Thread u . utku . turuncoglu
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