[Paraview] Scripting Common UI Tasks for Opening Files

Andy Bauer andy.bauer at kitware.com
Sun Oct 21 14:26:08 EDT 2012


If you're using the python trace (under Tools->Start Trace/Stop Trace) you
can create a python script that should mimic what you'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.

You could also create a state file (File->Save State) which may also
accomplish what you're looking for.

If either of those don't work as expected and/or desired, I would recommend
emailing back the list with specific problems.

Andy

On Sun, Oct 21, 2012 at 12:49 PM, Adrien Guillon <aj.guillon at gmail.com>wrote:

> Hi everyone,
>
> 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'm looking to script this.
>
> 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.
>
> Any suggestions on how to accomplish some automation?
>
> AJ
>
> _______________________________________________
> 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/20121021/dc5388e3/attachment-0001.htm>


More information about the ParaView mailing list