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 <[email protected]> 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 <[email protected]> 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
>>
>
>
>
_______________________________________________
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

Reply via email to