[Paraview] X3DExporter does not produce output file
Sebastien Jourdain
sebastien.jourdain at kitware.com
Wed Dec 3 13:49:45 EST 2014
View is not valid at the point you get it.
from paraview.simple import *
exporters=servermanager.createModule("exporters")
source=Cone()
Show()
render=Render()
x3dExporter=exporters.X3DExporter(FileName="foo.x3d")
x3dExporter.SetView(render)
x3dExporter.Write()
On Wed, Dec 3, 2014 at 10:01 AM, Michael Nolde <mnolde at gmx.net> wrote:
> Dear mailing list members,
>
> I have some trouble exporting a scene to a X3D file via pvpython.
> I tried to execute to code found in
> http://public.kitware.com/pipermail/paraview/2012-May/024924.html
> (see below). It is executed without any errors, but no output file is
> created.
> My Paraview version is 4.0.1 64-bit (on a Ubuntu 14.04 machine).
> What I want to achieve is to convert .ply files to .x3d via pvpython.
> Could someone give me a hint?
>
> Thanks in advance,
> Michael
>
> from paraview.simple import *
> exporters=servermanager.createModule("exporters")
> source=Cone()
> view = GetActiveView()
> Show(view)
> render=Render()
> x3dExporter=exporters.X3DExporter(FileName="foo.x3d")
> x3dExporter.SetView(view)
> x3dExporter.Write()
>
>
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141203/00315f59/attachment.html>
More information about the ParaView
mailing list