[Paraview] Rendering from file in pvpython

David E DeMarle dave.demarle at kitware.com
Tue Aug 13 11:54:44 EDT 2013


Yes it is.

In the GUI, use Tools->Trace to have the GUI create the script for you. Or
read http://paraview.org/Wiki/ParaView/Python_Scripting to learn the syntax
yourself if you prefer.

In either case a minimal script comes down to:

from paraview.simple import *
OpenDataFile(“can.ex2”)
Show()
Render()
WriteImage("can.png")

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Fri, Aug 9, 2013 at 4:09 PM, Aleksander Hulist <
aleksander.hulist at gmail.com> wrote:

> Hi!
>
> Is it possible to load a file using pvpython, render the result, make a
> screenshot and write this screenshot to file? I just couldn't find any info
> about it on the wiki.
>
> Thanks,
> Olek
>
> _______________________________________________
> 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/20130813/37f30518/attachment.htm>


More information about the ParaView mailing list