<div dir="ltr"><div>Utkarsh,<br><br>Thanks a lot. It works very well.<br><br></div>Yuzheng</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 5:30 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Refer to: <a href="http://paraview.org/Wiki/ParaView/Python_Scripting#Writing_Data_Files_.28ParaView_3.9_or_later.29" target="_blank">http://paraview.org/Wiki/ParaView/Python_Scripting#Writing_Data_Files_.28ParaView_3.9_or_later.29</a><br>

<br>
You simply use &quot;CreateWriter()&quot; with the the  filename with the<br>
appropriate extension.<br>
<br>
Utkarsh<br>
<div><div class="h5"><br>
On Wed, May 29, 2013 at 5:16 PM, Yuzheng Zhou &lt;<a href="mailto:yuzheng.zhou@kitware.com">yuzheng.zhou@kitware.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I am trying to export an output object in ParaView&#39;s python environment. The<br>
&gt; object is generated by a python programmable filter and should be saved as<br>
&gt; an MetaImage file. It can be successfully exported as .mhd file via ParaView<br>
&gt; UI (File -&gt; Save Data-&gt; choose .mhd as file type).  Could anyone please tell<br>
&gt; me how it can be exported using ParaView&#39;s python interpreter or in the<br>
&gt; pvpython environment?  Thanks a lot.<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Yuzheng<br>
&gt;<br>
&gt; --<br>
&gt; Yuzheng Zhou<br>
&gt; R &amp; D Engineer<br>
&gt; Kitware Inc.<br>
&gt; <a href="tel:%28919%29%20869-8857" value="+19198698857">(919) 869-8857</a><br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Paraview-developers mailing list<br>
&gt; <a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
&gt; <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Yuzheng Zhou<br>
R &amp; D Engineer<br>
Kitware Inc.<br>
<a value="+19199696990">(919) 869-8857</a></font><a value="+19199696990"><span style="font-family:courier new,monospace"></span><br></a>
</div>