<div dir="ltr">Thanks for the heads up on that, so I should not use threads inside pvpython than?<br><br><div class="gmail_quote">On Sat, Oct 18, 2008 at 12:48 PM, Berk Geveci <span dir="ltr"><<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>></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 class="Ih2E3d">On Sat, Oct 18, 2008 at 9:33 AM, Robert Maynard<br>
<<a href="mailto:robertjmaynard@gmail.com">robertjmaynard@gmail.com</a>> wrote:<br>
> I would like to revisit that using the python threading module in para view<br>
> causes serious problems, and would be a possible answer to the problem.<br>
<br>
</div>No it would not be. Server manager and the underlying rendering code<br>
in VTK are not even close to being thread safe. What you are<br>
suggesting would open a can of worms that would take man-months to<br>
fix. I can't remember what the problem with the threads is but I am<br>
glad it does not work :-)<br>
<div><div></div><div class="Wj3C7c"><br>
> Berk Geveci wrote:<br>
><br>
> I am afraid you cannot. I think it is a good idea though. You may want<br>
> to consider filing a feature request here: <a href="http://paraview.org/Bug" target="_blank">http://paraview.org/Bug</a><br>
><br>
> On Fri, Oct 17, 2008 at 4:03 PM, David Fuentes <<a href="mailto:fuentesdt@gmail.com">fuentesdt@gmail.com</a>> wrote:<br>
><br>
><br>
> Can you return control to the GUI during the execution of the python script?<br>
> During the loop I want to enable GUI interaction w/ the view,<br>
> i.e. use mouse to rotate/translate/etc...<br>
> but ParaView will not let me move/rotate until After the script is complete.<br>
><br>
><br>
><br>
><br>
> df<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Fri, 17 Oct 2008, Berk Geveci wrote:<br>
><br>
><br>
><br>
> What you need is something like:<br>
><br>
> pm=servermanager.ProxyManager()<br>
> femdata = pm.GetProxy("sources","femdata")<br>
> for i in range(10):<br>
> femdata.FileName = "foo%d.inp" % i<br>
> servermanager.GetRenderView().StillRender()<br>
><br>
> ParaView takes care of updating other objects for you. If you want to<br>
> learn more, I suggest searching for "demand driven pipeline". The VTK<br>
> book is a good source of information.<br>
><br>
> -berk<br>
><br>
> On Fri, Oct 17, 2008 at 12:50 PM, David Fuentes <<a href="mailto:fuentesdt@gmail.com">fuentesdt@gmail.com</a>><br>
> wrote:<br>
><br>
><br>
> Not sure if the AVS file reader is "time aware" but,<br>
> using the python interface it seems possible to write a script<br>
> to animate a time series of AVS files. Changing the reader filename via<br>
> the<br>
> python interface seems to work:<br>
><br>
><br>
> pm=servermanager.ProxyManager()<br>
> femdata = pm.GetProxy("sources","femdata")<br>
> femdata.SetPropertyWithName("FileName",".../new_filename.inp")<br>
><br>
><br>
><br>
> To create an animation would probably have to update various<br>
> other objects attached to the reader though.<br>
> How could you determine all objects attached to the reader<br>
> that need to be updated?<br>
><br>
><br>
> using paraview 3.2.1,<br>
> df<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> ParaView mailing list<br>
> <a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> ParaView mailing list<br>
> <a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>