[Paraview] (no subject)

David Doria daviddoria at gmail.com
Sat Apr 30 08:35:25 EDT 2011


On Fri, Apr 29, 2011 at 6:06 AM, Rentschler Martin <
martin.rentschler at gmail.com> wrote:

> Hi,
>
> I want to access the PointData of a Source using a python script.
>
> So first I choose the Source by
>
> >>> bla=GetActiveSource()
>
> >>> bla
>
> <paraview.servermanager.H5Part object at 0x46a39d0>
>
> and then I would to access the data of that object, but
>
> >>> Arrays=SOLID25_h5part.PointArrays
>
> >>> Arrays
>
> ['Coords_0', 'Coords_1', 'Coords_2', 'SOLID25_h', 'SOLID25_index',
> 'SOLID25_normals_0', 'SOLID25_normals_1', 'SOLID25_normals_2',
> 'SOLID25_pressure', 'SOLID25_velocity_0', 'SOLID25_velocity_1',
> 'SOLID25_velocity_2', 'SOLID25_vmob_0', 'SOLID25_vmob_1', 'SOLID25_vmob_2',
> 'SOLID25_w']
>
>
> Only gives me the names of the arrays. How do I then access to the Values
> of for example 'Coords_0' ?
>
>
> Best regards
>
>
> Martin
>

Is this what you're looking for?

http://www.itk.org/Wiki/ParaView/Python_Scripting#Source_Proxies


David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110430/6a793159/attachment.htm>


More information about the ParaView mailing list