<div dir="ltr">I have a follow-up question. In the Pavaview's Python environment, the CreateWriter() can export the object as a .mhd and a .zraw file correctly. Ideally, I want to have a .mha file instead of .mhd+ raw files because a single file is easier to be processed (uploaing, downloading, etc). But when I try to use CreateWriter() to create .mha file, I got an error like this:<br>
<style type="text/css">
p, li { white-space: pre-wrap;
</style>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:9pt">vtkSMWriterFactory (0x23b8740): No matching writer found for extension: mha</span></p><p style="margin:0px;text-indent:0px">
<br><span style="font-family:'Courier';font-size:9pt"></span></p><p style="margin:0px;text-indent:0px">Can anybody tell me if there a way to export the object as .mha file in ParaView's python environment, or an easy way to convert .mhd+ raw to .mha file?<br>
</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Thanks,</p><p style="margin:0px;text-indent:0px">Yuzheng<br></p><p style="margin:0px;text-indent:0px"><br><span style="font-family:'Courier';font-size:9pt;color:rgb(128,0,0)"></span></p>
<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 5:48 PM, Yuzheng Zhou <span dir="ltr"><<a href="mailto:yuzheng.zhou@kitware.com" target="_blank">yuzheng.zhou@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Utkarsh,<br><br>Thanks a lot. It works very well.<span class=""><font color="#888888"><br>
<br></font></span></div><span class=""><font color="#888888">Yuzheng</font></span></div><div class=""><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 5:30 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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 "CreateWriter()" with the the filename with the<br>
appropriate extension.<br>
<br>
Utkarsh<br>
<div><div><br>
On Wed, May 29, 2013 at 5:16 PM, Yuzheng Zhou <<a href="mailto:yuzheng.zhou@kitware.com" target="_blank">yuzheng.zhou@kitware.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I am trying to export an output object in ParaView's python environment. The<br>
> object is generated by a python programmable filter and should be saved as<br>
> an MetaImage file. It can be successfully exported as .mhd file via ParaView<br>
> UI (File -> Save Data-> choose .mhd as file type). Could anyone please tell<br>
> me how it can be exported using ParaView's python interpreter or in the<br>
> pvpython environment? Thanks a lot.<br>
><br>
><br>
> Thanks,<br>
> Yuzheng<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Paraview-developers mailing list<br>
> <a href="mailto:Paraview-developers@paraview.org" target="_blank">Paraview-developers@paraview.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
><br>
</blockquote></div><br><br clear="all"><a value="+19199696990"><br></a>
</div>
</div></div></blockquote></div><a value="+19199696990"><br></a>
</div></div></div></div>