<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    works perfectly, thank you!<br>
    <br>
    <div class="moz-cite-prefix">On 03.12.2014 19:49, Sebastien Jourdain
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABObKxf6xu35phCuxN=JSVokr0pNBoSrR3-yDXfkvHxok-Hj=A@mail.gmail.com"
      type="cite">
      <div dir="ltr">View is not valid at the point you get it.
        <div><br>
        </div>
        <div><span style="font-family:Verdana;font-size:12px">from
            paraview.simple import *</span><br
            style="font-family:Verdana;font-size:12px">
          <span style="font-family:Verdana;font-size:12px">exporters=servermanager.</span><span
            style="font-family:Verdana;font-size:12px">createModule("exporters")</span><br
            style="font-family:Verdana;font-size:12px">
          <span style="font-family:Verdana;font-size:12px">source=Cone()</span><br
            style="font-family:Verdana;font-size:12px">
          <span style="font-family:Verdana;font-size:12px">Show()</span><br
            style="font-family:Verdana;font-size:12px">
          <span style="font-family:Verdana;font-size:12px">render=Render()</span><br
            style="font-family:Verdana;font-size:12px">
          <span style="font-family:Verdana;font-size:12px">x3dExporter=exporters.</span><span
            style="font-family:Verdana;font-size:12px">X3DExporter(FileName="foo.x3d"</span><span
            style="font-family:Verdana;font-size:12px">)</span><br
            style="font-family:Verdana;font-size:12px">
          <span style="font-family:Verdana;font-size:12px">x3dExporter.SetView(</span><span
            style="font-family:Verdana;font-size:12px">render</span><span
            style="font-family:Verdana;font-size:12px">)</span><br
            style="font-family:Verdana;font-size:12px">
          <span style="font-family:Verdana;font-size:12px">x3dExporter.Write()</span><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Dec 3, 2014 at 10:01 AM,
          Michael Nolde <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:mnolde@gmx.net" target="_blank">mnolde@gmx.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div style="font-family:Verdana;font-size:12.0px">
                <div>Dear mailing list members,</div>
                <div> </div>
                <div>I have some trouble exporting a scene to a X3D file
                  via pvpython.</div>
                <div>I tried to execute to code found in <a
                    moz-do-not-send="true"
                    href="http://public.kitware.com/pipermail/paraview/2012-May/024924.html"
                    target="_blank">http://public.kitware.com/pipermail/paraview/2012-May/024924.html</a></div>
                <div>(see below). It is executed without any errors, but
                  no output file is created.</div>
                <div>My Paraview version is 4.0.1 64-bit (on a Ubuntu
                  14.04 machine).</div>
                <div>What I want to achieve is to convert .ply files to
                  .x3d via pvpython.</div>
                <div>Could someone give me a hint?</div>
                <div> </div>
                <div>Thanks in advance,</div>
                <div>Michael</div>
                <div> </div>
                <div>from paraview.simple import *<br>
                  exporters=servermanager.createModule("exporters")<br>
                  source=Cone()<br>
                  view = GetActiveView()<br>
                  Show(view)<br>
                  render=Render()<br>
                  x3dExporter=exporters.X3DExporter(FileName="foo.x3d")<br>
                  x3dExporter.SetView(view)<br>
                  x3dExporter.Write()</div>
                <div> </div>
                <div> </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Powered by <a moz-do-not-send="true"
              href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a
              moz-do-not-send="true"
              href="http://www.kitware.com/opensource/opensource.html"
              target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
            <br>
            Please keep messages on-topic and check the ParaView Wiki
            at: <a moz-do-not-send="true"
              href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://public.kitware.com/mailman/listinfo/paraview"
              target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>