On Fri, Apr 29, 2011 at 6:06 AM, Rentschler Martin <
[email protected]> 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
_______________________________________________
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

Reply via email to