[Paraview] Exporting using Python

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Sep 5 09:26:44 EDT 2012


Try this:

from paraview.simple import *
exporters = servermanager.createModule("exporters")
x3d = exporters.X3DExporter(FileName="/tmp/foo.x3d")
view = GetActiveView()
x3d.SetView(view.SMProxy)
x3d.Write()
del x3d

Utkarsh

On Wed, Sep 5, 2012 at 8:34 AM, Soroush Heidari Pahlavian
<soroush.heidari at gmail.com> wrote:
> Hello,
>
> I have a transient model loaded into paraview. Now I want to export a .x3d
> file for each frame (lets say for 2000 frames).
>
> I think the script should be very easy, but since I am very new to Python
> scripting in paraview, I don't know where to start. Can someone help me
> please?! BTW I am using version 3.14.
>
> Thanks
>>Soroush
>
>
> _______________________________________________
> 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
>


More information about the ParaView mailing list