Alan,

Here;s an example to load a color map XML

lut = GetColorTransferFunction("RTData")
with open("/tmp/Blot.xml", "r") as f:
      data = f.read()
      lut.ApplyColorMap(data)


On Wed, Jan 7, 2015 at 3:34 PM, Scott, W Alan <[email protected]> wrote:

>  Ping?
>
>
>
>
>
>
>
> *From:* ParaView [mailto:[email protected]] *On Behalf Of *Scott,
> W Alan
> *Sent:* Tuesday, December 23, 2014 10:54 AM
> *To:* Utkarsh Ayachit
> *Cc:* Mauldin, Jeffrey A.; [email protected]
> *Subject:* Re: [Paraview] [EXTERNAL] Re: Trace recorder missing color
> preset changes
>
>
>
> Correct, the user has a specific XML file / block of code he wants to
> load.  He is working on a car engine, with a few hundred blocks.  He is
> coloring the car engine by material type – aluminum, steel, rubber, copper,
> etc.
>
>
>
> Alan
>
>
>
> *From:* Utkarsh Ayachit [mailto:[email protected]
> <[email protected]>]
> *Sent:* Tuesday, December 23, 2014 8:35 AM
> *To:* Scott, W Alan
> *Cc:* [email protected]; Mauldin, Jeffrey A.
> *Subject:* [EXTERNAL] Re: [Paraview] Trace recorder missing color preset
> changes
>
>
>
> Alan,
>
>
>
> What does your user want to do exactly? Does he have a color XML that he
> wants to load?
>
>
>
> On Mon, Dec 22, 2014 at 9:38 PM, Scott, W Alan <[email protected]> wrote:
>
> There is an issue with the trace recorder missing color preset changes.  I
> wrote up a bug here: http://www.paraview.org/Bug/view.php?id=15116.
> However, I need the python for a user so that he can manually edit the
> trace script and change color presets.  Does anyone either know the python
> I need, or where to find it?
>
>
>
> Thanks,
>
>
>
> Alan
>
>
>
>
> _______________________________________________
> 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
>
>
>
<ColorMap space="HSV" indexedLookup="false" name="blot">
    <Point x="0" o="0" r="0" g="0" b="1"/>
    <Point x="0.166" o="0" r="0" g="0" b="1"/>
    <Point x="0.167" o="0" r="1" g="0" b="1"/>
    <Point x="0.332" o="0" r="1" g="0" b="1"/>
    <Point x="0.333" o="0" r="0" g="1" b="1"/>
    <Point x="0.5" o="0" r="0" g="1" b="1"/>
    <Point x="0.501" o="0" r="0" g="1" b="0"/>
    <Point x="0.666" o="0" r="0" g="1" b="0"/>
    <Point x="0.667" o="0" r="1" g="1" b="0"/>
    <Point x="0.832" o="0" r="1" g="1" b="0"/>
    <Point x="0.833" o="0" r="1" g="0" b="0"/>
    <Point x="1" o="0" r="1" g="0" b="0"/>
    <NaN r="0.498039" g="0" b="0"/>
</ColorMap>
_______________________________________________
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

Reply via email to