Pushed the fixes to git.<br><br>Here is python macro I&#39;ve been using to test the trace state.  I add this to the macro toolbar so I can run it with one click.  It does a trace state, clears all the sources &amp; views, then executes the trace to restore your state.  This means you can click the button at any time and you *should* get back what you started with.  Of course, there are some pipelines that do not restore correctly (just recently noticed the 2D Render View is not available in python...)  Any errors that may be produced will be displayed in the python console, but probably not echoed to stdout.<br>
<br># reload_state.py<br>from paraview import smstate<br><br>def clear_proxies():<br>   groups = [&quot;sources&quot;, &quot;representations&quot;, &quot;views&quot;,<br>                   &quot;implicit_functions&quot;, &quot;piecewise_functions&quot;,<br>
                   &quot;lookup_tables&quot;, &quot;scalar_bars&quot;, &quot;selection_sources&quot;]<br>   for g in groups:<br>       for p in servermanager.ProxyManager().GetProxiesInGroup(g).values():<br>           Delete(p)<br>
<br>def reload_state():<br>    smstate.run()<br>    trace_string = smstate.smtrace.get_trace_string()<br>    clear_proxies()<br>    code = compile(trace_string, &quot;paraview_trace&quot;, &quot;exec&quot;)<br>    exec(code)<br>
<br>reload_state()<br><br><br>Pat<br><br><div class="gmail_quote">On Fri, Apr 16, 2010 at 12:50 PM, pat marion <span dir="ltr">&lt;<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This fix will be committed after the git transition.  I also fixed another bug about adding scalar bars to the correct view when a state has multiple views.  Also added a new test.<br><font color="#888888"><br>Pat</font><div>
<div></div><div class="h5"><br><br><div class="gmail_quote">
On Thu, Apr 15, 2010 at 7:33 PM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu" target="_blank">emonson@cs.duke.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div style="word-wrap: break-word;">Thanks a lot for looking into it and finding a fix so quickly, Pat!<div><br></div><div>I need to set up some offline animations for some of my users and it&#39;s so much easier now that all the python trace stuff is in place -- trace it, add an AnimateReader at the end and then all I have to worry about is data file names. (Well, in practice I do a little clean-up of the trace, but it&#39;s so much easier than having to do it from scratch in python -- get to set up the vis in PV and then generate similar animations in batch for other simulation runs. Nice.)<div>

<br></div><div>Talk to you later,</div><div>-Eric</div><div><div></div><div><div><br></div><div><br><div><div>On Apr 15, 2010, at 6:26 PM, pat marion wrote:</div><br><blockquote type="cite">Hi Eric,<br><br>Yeah, this never worked (well it worked for a while due to a bug, but stopped working when I fixed the bug....)  It affects filters that have Input properties with ProxyListDomain.  Stream tracer, probe location are other examples I can find.  Turns out it was an easy fix, I&#39;ll push the change tomorrow:<br>


<br>diff --git a/Utilities/VTKPythonWrapping/paraview/smstate.py b/Utilities/VTKPythonWrapping/paraview/smstate.py<br>index d40f3ad..7409c5a 100644<br>--- a/Utilities/VTKPythonWrapping/paraview/smstate.py<br>+++ b/Utilities/VTKPythonWrapping/paraview/smstate.py<br>


@@ -39,6 +39,10 @@ def get_all_inputs_registered(proxy):<br>     itr = servermanager.PropertyIterator(proxy.SMProxy)<br>     for prop in itr:<br>         if prop.IsA(&quot;vtkSMInputProperty&quot;):<br>+            # Don&#39;t worry about input properties with ProxyListDomains,<br>


+            # these input proxies do not need to be constructed by python.<br>+            if prop.GetDomain(&quot;proxy_list&quot;) is not None:<br>+                return True<br>             for i in xrange(prop.GetNumberOfProxies()):<br>


                 input_proxy = prop.GetProxy(i)<br>                 info = smtrace.get_proxy_info(input_proxy, search_existing=False)<br><br><br><br>Pat<br><br><div class="gmail_quote">On Thu, Apr 15, 2010 at 3:17 PM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu" target="_blank">emonson@cs.duke.edu</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey all,<br>
<br>
I haven&#39;t been using the python trace or state trace much lately, but I just noticed a problem that shows up both on the Ubuntu 64-bit 3.8 RC1 binary and CVS PV 3.9 on OS X, so it might be pretty general. If I do:<br>



<br>
PointSource: 100 pts, rad 10<br>
Glyph: Sphere (the rest default)<br>
<br>
and do a Trace State, the beginning of the trace looks like this:<br>
<br>
WARNING: Missing dependencies, could not register proxies: [&lt;paraview.servermanager.Glyph object at 0x12910d490&gt;]<br>
WARNING: Missing dependencies, could not register proxies: [&lt;paraview.servermanager.GeometryRepresentation object at 0x12913ead0&gt;]<br>
try: paraview.simple<br>
except: from paraview.simple import *<br>
Glyph1 = GetActiveSource()<br>
DataRepresentation2 = GetDisplayProperties(Glyph1)<br>
RenderView1 = CreateRenderView()<br>
RenderView1.LightSpecularColor = [1.0, 1.0, 1.0]<br>
[...]<br>
<br>
So I can&#39;t do a state trace that includes a glyph filter. Sorry I haven&#39;t investigated more to see how widespread a problem it is, or if it&#39;s only with Glyph.<br>
<br>
Thanks,<br>
-Eric<br>
<br>
------------------------------------------------------<br>
Eric E Monson<br>
Duke Visualization Technology Group<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>
</blockquote></div><br></div></div></div></div></div></blockquote></div><br>
</div></div></blockquote></div><br>