<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Alan,<br>
    <br>
    The verbosity of the trace can be confusing, 90% of it is
    unnecessary, and can be removed. Here's how it looks in your example
    with unnecessary stuff removed and the 3 lines added to change the
    lut by name.<br>
    <tt><br>
    </tt><tt>#### import the simple module from the paraview</tt><tt><br>
    </tt><tt>from paraview.simple import *</tt><tt><br>
    </tt><tt><br>
    </tt><tt>#### disable automatic camera reset on 'Show'</tt><tt><br>
    </tt><tt>paraview.simple._DisableFirstRenderCameraReset()</tt><tt><br>
    </tt><tt><br>
    </tt><tt># create a new 'Wavelet'</tt><tt><br>
    </tt><tt>wavelet1 = Wavelet()</tt><tt><br>
    </tt><tt><br>
    </tt><tt># get active view</tt><tt><br>
    </tt><tt>renderView1 = GetActiveViewOrCreate('RenderView')</tt><tt><br>
    </tt><tt><br>
    </tt><tt># uncomment following to set a specific view size</tt><tt><br>
    </tt><tt># renderView1.ViewSize = [856, 797]</tt><tt><br>
    </tt><tt><br>
    </tt><tt># show data in view</tt><tt><br>
    </tt><tt>wavelet1Display = Show(wavelet1, renderView1)</tt><tt><br>
    </tt><tt><br>
    </tt><tt># change representation type</tt><tt><br>
    </tt><tt>wavelet1Display.SetRepresentationType('Surface')</tt><tt><br>
    </tt><tt><br>
    </tt><b><tt># change lookup table</tt></b><b><tt><br>
      </tt></b><b><tt>wavelet1Display.ColorArrayName = 'RTData'</tt></b><b><tt><br>
      </tt></b><b><tt>w_arr = wavelet1.PointData.GetArray('RTData')</tt></b><b><tt><br>
      </tt></b><b><tt>wavelet1Display.LookupTable =
        AssignLookupTable(w_arr, 'Rainbow Blended White')</tt></b><tt><br>
    </tt><tt><br>
    </tt><tt># show color bar/color legend</tt><tt><br>
    </tt><tt>wavelet1Display.SetScalarBarVisibility(renderView1, True)</tt><tt><br>
    </tt><tt><br>
    </tt><tt># reset view to fit data</tt><tt><br>
    </tt><tt>renderView1.ResetCamera()</tt><tt><br>
    </tt><tt><br>
    </tt><tt>#### uncomment the following to render all views</tt><tt><br>
    </tt><tt># RenderAllViews()</tt><tt><br>
    </tt><tt># alternatively, if you want to write images, you can use
      SaveScreenshot(...).</tt><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 03/17/2015 11:46 AM, Scott, W Alan
      wrote:<br>
    </div>
    <blockquote
      cite="mid:e972b392646c4da78fc22d00c51618d7@ES05AMSNLNT.srn.sandia.gov"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:809787675;
        mso-list-type:hybrid;
        mso-list-template-ids:-394261450 977819718 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks
            Burlen!<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Obviously,
            my ParaView Python fu is weak.  I tried to merge this code
            into Python created by the trace recorder, but couldn’t. 
            Say a person does the following (which is sort of what my
            customer is doing) :<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            style="font-size:11.0pt;font-family:Symbol;color:#1F497D"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">        
              </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Trace
            recorder on.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            style="font-size:11.0pt;font-family:Symbol;color:#1F497D"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">        
              </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Wavelet. 
            Apply.  Surface.  RTData.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            style="font-size:11.0pt;font-family:Symbol;color:#1F497D"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">        
              </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Color
            Editor/ Presets/ Blue to Red Rainbow.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            style="font-size:11.0pt;font-family:Symbol;color:#1F497D"><span
              style="mso-list:Ignore">·<span style="font:7.0pt
                "Times New Roman"">        
              </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Trace
            Recorder off.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The
            line setting Blue to Red Rainbow doesn’t get recorded.  What
            code would I paste in there?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Here
            is the incorrect trace:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">####
            import the simple module from the paraview<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">from
            paraview.simple import *<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">####
            disable automatic camera reset on 'Show'<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">paraview.simple._DisableFirstRenderCameraReset()<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            create a new 'Wavelet'<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1
            = Wavelet()<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            get active view<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">renderView1
            = GetActiveViewOrCreate('RenderView')<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            uncomment following to set a specific view size<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            renderView1.ViewSize = [856, 797]<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            show data in view<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display
            = Show(wavelet1, renderView1)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            trace defaults for the display properties.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display.Representation
            = 'Outline'<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display.ColorArrayName
            = ['POINTS', '']<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display.ScalarOpacityUnitDistance
            = 1.7320508075688779<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display.Slice
            = 10<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            reset view to fit data<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">renderView1.ResetCamera()<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            change representation type<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display.SetRepresentationType('Surface')<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            set scalar coloring<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">ColorBy(wavelet1Display,
            ('POINTS', 'RTData'))<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            rescale color and/or opacity maps used to include current
            data range<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display.RescaleTransferFunctionToDataRange(True)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            show color bar/color legend<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">wavelet1Display.SetScalarBarVisibility(renderView1,
            True)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            get color transfer function/color map for 'RTData'<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">rTDataLUT
            = GetColorTransferFunction('RTData')<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">rTDataLUT.RGBPoints
            = [37.35310363769531, 0.231373, 0.298039, 0.752941,
            112.04112243652344, 0.865003, 0.865003, 0.865003,
            186.72914123535156, 0.705882, 0.0156863, 0.14902]<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">rTDataLUT.ScalarRangeInitialized
            = 1.0<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            get opacity transfer function/opacity map for 'RTData'<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">rTDataPWF
            = GetOpacityTransferFunction('RTData')<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">rTDataPWF.Points
            = [37.35310363769531, 0.0, 0.5, 0.0, 186.72914123535156,
            1.0, 0.5, 0.0]<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">rTDataPWF.ScalarRangeInitialized
            = 1<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">####
            saving camera placements for all active views<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            current camera placement for renderView1<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">renderView1.CameraPosition
            = [0.0, 0.0, 66.92130429902464]<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">renderView1.CameraParallelScale
            = 17.320508075688775<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">####
            uncomment the following to render all views<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            RenderAllViews()<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#
            alternatively, if you want to write images, you can use
            SaveScreenshot(...).<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal" style="margin-left:.5in"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                Burlen Loring [<a class="moz-txt-link-freetext" href="mailto:bloring@lbl.gov">mailto:bloring@lbl.gov</a>]
                <br>
                <b>Sent:</b> Monday, March 16, 2015 4:45 PM<br>
                <b>To:</b> Scott, W Alan; <a class="moz-txt-link-abbreviated" href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
                <b>Subject:</b> [EXTERNAL] Re: [Paraview] Trace recorder
                and presets (color table)<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
        <p class="MsoNormal"
style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">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 moz-do-not-send="true"
            href="http://www.paraview.org/Wiki/ParaView/Python/Lookup_tables">recipe</a><br>
          <br>
          <tt><span style="font-size:10.0pt">w = Wavelet()</span></tt><span
            style="font-size:10.0pt;font-family:"Courier New""><br>
            <tt>w_rep = Show(w)</tt><br>
            <tt>w_rep.Representation = 'Surface'</tt><br>
          </span><tt><span style="font-size:10.0pt;color:#000099"># </span></tt><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:#000099"><br>
          </span><tt><span style="font-size:10.0pt">w_rep.ColorArrayName
              = 'RTData'</span></tt><span
            style="font-size:10.0pt;font-family:"Courier New""><br>
            <tt>w_arr = w.PointData.GetArray('RTData')</tt><br>
            <tt>w_rep.LookupTable = AssignLookupTable(w_arr, 'Rainbow
              Blended White')</tt></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:#000099"><br>
            <tt>#</tt></span><span
            style="font-size:10.0pt;font-family:"Courier New""><br>
            <tt>Render().ResetCamera()</tt></span><br>
          <br>
          Burlen<o:p></o:p></p>
        <div>
          <p class="MsoNormal" style="margin-left:.5in">On 03/16/2015
            03:14 PM, Scott, W Alan wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">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.<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">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">http://www.paraview.org/Bug/view.php?id=15116</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?<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Thanks
                all!<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Alan
                <o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-left:.5in"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
          </div>
          <p class="MsoNormal" style="margin-left:.5in"><br>
            <br>
            <br>
            <o:p></o:p></p>
          <pre style="margin-left:.5in">_______________________________________________<o:p></o:p></pre>
          <pre style="margin-left:.5in">Powered by <a moz-do-not-send="true" href="http://www.kitware.com">www.kitware.com</a><o:p></o:p></pre>
          <pre style="margin-left:.5in"><o:p> </o:p></pre>
          <pre style="margin-left:.5in">Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><o:p></o:p></pre>
          <pre style="margin-left:.5in"><o:p> </o:p></pre>
          <pre style="margin-left:.5in">Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><o:p></o:p></pre>
          <pre style="margin-left:.5in"><o:p> </o:p></pre>
          <pre style="margin-left:.5in">Search the list archives at: <a moz-do-not-send="true" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a><o:p></o:p></pre>
          <pre style="margin-left:.5in"><o:p> </o:p></pre>
          <pre style="margin-left:.5in">Follow this link to subscribe/unsubscribe:<o:p></o:p></pre>
          <pre style="margin-left:.5in"><a moz-do-not-send="true" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a><o:p></o:p></pre>
        </blockquote>
        <p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>