[Paraview] (no subject)

David E DeMarle dave.demarle at kitware.com
Fri Apr 29 08:28:30 EDT 2011


ParaView has a client server architecture, so the actual data may be
far far away.

Use servermanager.Fetch to bring the data to the client, or use a
python programmable filter to script on the server where the data is.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list