[Paraview] export Python script?
pat marion
pat.marion at kitware.com
Wed Apr 7 22:21:05 EDT 2010
Ah, the trace state feature was added just after 3.6.2.
Since trace is implemented completely in python, it is possible to grab
smtrace.py and smstate.py from paraview's cvshead, and then run it from the
python console:
import paraview.smstate as st
st.run()
st.smtrace.save_trace("output.py")
It's possible some other python api changed that will prevent this from
working, but if you can't wait for the 3.8 release, it might be worth giving
a shot.
downloads-
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Utilities/VTKPythonWrapping/paraview/smstate.py?revision=1.5&root=ParaView3
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Utilities/VTKPythonWrapping/paraview/smtrace.py?revision=1.19&root=ParaView3
Pat
On Wed, Apr 7, 2010 at 9:47 PM, Randy Heiland <heiland at indiana.edu> wrote:
> Thanks Pat. But I'm not seeing 'Trace State' there - just
> Start/Stop/Show/Edit/Save Trace. I'm using 3.6.2 (binary).
>
>
> On Apr 7, 2010, at 9:39 PM, pat marion wrote:
>
> Yes, it is possible. You'll want to use the python trace functionality.
> When you're ready to save the state, open the python console, switch to the
> trace tab, and click 'Trace State'. Then click 'Save Trace'.
>
> Here are some more details- http://www.cmake.org/Wiki/Python_GUI_Tools
>
> Pat
>
> On Wed, Apr 7, 2010 at 9:10 PM, Randy Heiland <heiland at indiana.edu> wrote:
>
>> I'm guessing the answer is no (and I couldn't find anything online), but
>> I'll ask anyway - is it possible to export/generate a Python script from a
>> ParaView session/state?
>>
>> thanks, Randy
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100407/1f9fe17f/attachment.htm>
More information about the ParaView
mailing list