[Paraview] ParaView and Python general questions

Eric E. Monson emonson at cs.duke.edu
Tue Sep 14 09:07:21 EDT 2010


Hey Milos,

Someone else may have to address your specific concerns about loading opacity functions, axes and rotation center, but I wanted to make sure you know about some very helpful functionality for figuring out the way to do things in Python. In 3.6 there was already a Python "Trace" function where you can start a trace, then do GUI manipulations, and then show or save the trace and look at the Python commands for what you did. I would advise upgrading to 3.8, though, as there is now a "Trace State" button on the Python shell which lets you set up a pipeline and then get the Python commands which will (should) set up the same pipeline.

For automating things you'll probably still need to refer to the wiki page for some things. I think that's the most up-to-date documentation:

http://www.paraview.org/Wiki/ParaView/Python_Scripting

Hopefully someone else can help with your more specific needs,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Sep 14, 2010, at 8:21 AM, Milos Ilak wrote:

> Hi,
> 
> I am new to ParaView and not entirely new to Python. I have been trying to create Python scripts to automate some animations with volume rendering that I have been working on.
> 
> I have found it very difficult to find out how to do various things from Python that are easily accessible from the main ParaView GUI. I haven't been able to find detailed documentation, except for the "ParaView Scripting with Python" document, and by looking at the properties of the Python modules using dir, help, etc, it is very hard to find out how some things are done and I have to admit that I am a bit lost. I was wondering if a more comprehensive guide than this document and the 'Python Recipes' page exists, or at least some guidelines on how to find out how things are done from the servermanager module. 
> 
> Some things I would like to do is for example to load a preset for the opacity function for volume rendering that I have created and saved using the GUI, to show/hide axes and the rotation center when rendering, etc. 
> 
> Also, I have read about some bugs being fixed (for example showing/hiding the center of the axes). In order to have those fixes, can I get an updated Python module and how? I am currently using Paraview 3.6.1., but should soon upgrade to 3.8.0. 
> 
> Thank you,
> 
> Milos
> 
> 
> -- 
> Miloš Ilak
> Linné Flow Centre
> KTH Mechanics, Stockholm 
> +46(0) 8 790-7152
> www2.mech.kth.se/~ilak
> 
> 
> _______________________________________________
> 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/20100914/dad7db53/attachment.htm>


More information about the ParaView mailing list