<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Alan,<br>
<br>
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 <a
href="http://www.paraview.org/Wiki/ParaView/Python/Lookup_tables">recipe</a><br>
<br>
<tt>w = Wavelet()</tt><tt><br>
</tt><tt>w_rep = Show(w)</tt><tt><br>
</tt><tt>w_rep.Representation = 'Surface'</tt><tt><br>
</tt><font color="#000099"><tt># </tt><tt><br>
</tt><font color="#000000"><tt>w_rep.ColorArrayName = 'RTData'</tt><tt><br>
</tt><tt>w_arr = w.PointData.GetArray('RTData')</tt><tt><br>
</tt><tt>w_rep.LookupTable = AssignLookupTable(w_arr, 'Rainbow
Blended White')</tt></font><tt><br>
</tt><tt>#</tt></font><tt><br>
</tt><tt>Render().ResetCamera()</tt><br>
<br>
Burlen<br>
<br>
<div class="moz-cite-prefix">On 03/16/2015 03:14 PM, Scott, W Alan
wrote:<br>
</div>
<blockquote
cite="mid:23e410a9b2c245ca8c1f8a8928329688@ES05AMSNLNT.srn.sandia.gov"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>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.</div>
<div> </div>
<div>I have written this issue up as bug number <a
moz-do-not-send="true"
href="http://www.paraview.org/Bug/view.php?id=15116"><font
color="blue"><u>http://www.paraview.org/Bug/view.php?id=15116</u></font></a>,
but need to give the user the code that would have/ should
have been
produced. Does anyone have the python code that changes
presets?</div>
<div> </div>
<div>Thanks all!</div>
<div> </div>
<div>Alan </div>
<div> </div>
<div> </div>
<div> </div>
</span></font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>