[Paraview-developers] How can I export an object to .mhd file in ParaView's python environment?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed May 29 17:30:00 EDT 2013


Refer to: http://paraview.org/Wiki/ParaView/Python_Scripting#Writing_Data_Files_.28ParaView_3.9_or_later.29

You simply use "CreateWriter()" with the the  filename with the
appropriate extension.

Utkarsh

On Wed, May 29, 2013 at 5:16 PM, Yuzheng Zhou <yuzheng.zhou at kitware.com> wrote:
> Hi all,
>
> I am trying to export an output object in ParaView's python environment. The
> object is generated by a python programmable filter and should be saved as
> an MetaImage file. It can be successfully exported as .mhd file via ParaView
> UI (File -> Save Data-> choose .mhd as file type).  Could anyone please tell
> me how it can be exported using ParaView's python interpreter or in the
> pvpython environment?  Thanks a lot.
>
>
> Thanks,
> Yuzheng
>
> --
> Yuzheng Zhou
> R & D Engineer
> Kitware Inc.
> (919) 869-8857
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>


More information about the Paraview-developers mailing list