You should use a python programmable filter, not the python shell.

The python shell is in the client, and typically has no acess to the
data on the server, the python filter runs on the server. If you must
use the shell, use servermanager.Fetch to bring the actual data to the
client and then use py wrapped VTK to inspect it.

See http://paraview.org/Wiki/Python_Programmable_Filter for examples.

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



On Mon, Apr 18, 2011 at 4:50 PM, Stéphane Backaert
<[email protected]> wrote:
> Hello,
>
> I made a PlotOnIntersectionCurve on one of my slices: I get in a spreadsheet 
> view a list of points that belong to this intersection.
>
> I would like to make a 'for' loop on each point (to make an average of 
> components of the vectors associated to each point actually) in a python 
> script...
> Here what I did:
>
> plot = GetActiveSource() (after choose my PlotOnIntersectionCurve source in 
> the Pipeline Browser)
> datainfo = plot.GetPointDataInformation()
> a1 = datainfo.GetArray(1)
>
> what command should I use after (GetTuple3 don't work on a1...)
>
> Thank you!!
> _______________________________________________
> 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
>
_______________________________________________
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