Hi,<br><br>So this doesn&#39;t quite work.  The problem is that the generated script seems to hard-code particular filenames, rather than say just looking at the order of the pipeline.  Given that we have to open several files at the same time, and then arrange a visualization of simulation results, this isn&#39;t quite what we want.<br>
<br>I was unaware of the macro feature, so I might be able to investigate a bit further to write a python macro that does what we want.<br><br>I considered writing a script to generate a state file automatically for a given set of filenames.  I&#39;m not sure if this is the best option or not.  It depends upon the portability of these files from version to version, and the dependency upon particular files.<br>
<br>In particular, we have several file types which particular features of results.  So, for instance, we might have for simulation run X, and features f_j:<br><br>X_f1_*.vtp<br>X_f2_*.vtu<br>X_f3_*.vtu<br><br>We need to open these files and make some basic adjustments so that we have a good idea of what is happening in the simulation.<br>
<br>AJ<br><br><div class="gmail_quote">On Sun, Oct 21, 2012 at 2:26 PM, Andy Bauer <span dir="ltr">&lt;<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you&#39;re using the python trace (under Tools-&gt;Start Trace/Stop Trace) you can create a python script that should mimic what you&#39;re doing in the GUI. After you stop the trace you have the option of saving it as a macro which will then allow you to click on a widget in the GUI to replay those actions. <br>

<br>You could also create a state file (File-&gt;Save State) which may also accomplish what you&#39;re looking for. <br><br>If either of those don&#39;t work as expected and/or desired, I would recommend emailing back the list with specific problems.<span class="HOEnZb"><font color="#888888"><br>

<br>Andy<br><br></font></span><div class="gmail_quote"><div><div class="h5">On Sun, Oct 21, 2012 at 12:49 PM, Adrien Guillon <span dir="ltr">&lt;<a href="mailto:aj.guillon@gmail.com" target="_blank">aj.guillon@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi everyone,<br><br>We have simulation results that we frequently visualize in the same way.  We construct a specific pipeline, visualize some parts as wireframe, set a color scheme, and so on.  Unfortunately, this is done manually at the moment, which means that just opening simulation results can take a few minutes of clicking around.  I&#39;m looking to script this.<br>


<br>Is there a way to script the UI so that it opens a number of given files, and adjusts features automatically?  My investigations into Python scripting with Paraview suggest that it cannot directly control the UI, instead it does analysis using Paraview.<br>


<br>Any suggestions on how to accomplish some automation?<br><br>AJ<br>
<br></div></div><div class="im">_______________________________________________<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>
<br></div></blockquote></div><br>
</blockquote></div><br>