[Paraview] Trace recorder and presets (color table)
Burlen Loring
bloring at lbl.gov
Mon Mar 16 18:45:18 EDT 2015
Hi Alan,
You can use the AssignLookupTable function to reference builtin lookup
tables by name. For example see code between # marks below. There are a
few other conveniences for working with the builtin tables as well, see
this recipe <http://www.paraview.org/Wiki/ParaView/Python/Lookup_tables>
w = Wavelet()
w_rep = Show(w)
w_rep.Representation = 'Surface'
#
w_rep.ColorArrayName = 'RTData'
w_arr = w.PointData.GetArray('RTData')
w_rep.LookupTable = AssignLookupTable(w_arr, 'Rainbow Blended White')
#
Render().ResetCamera()
Burlen
On 03/16/2015 03:14 PM, Scott, W Alan wrote:
> I have a user that needs to change the ParaView preset from default
> (cool to warm) to another ParaView preset (Blue to Red Rainbow). He
> wants to do this in a python trace. So, he used the trace recorder to
> record his steps. Unfortunately, changing presets is not recorded with
> the trace recorder.
> I have written this issue up as bug number
> _http://www.paraview.org/Bug/view.php?id=15116_, but need to give the
> user the code that would have/ should have been produced. Does anyone
> have the python code that changes presets?
> Thanks all!
> 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
>
> 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/20150316/e1ec10c2/attachment.html>
More information about the ParaView
mailing list