This is why I love the ParaView architecture. I always find myself
surprised by what it can do :-)

On Fri, Apr 17, 2009 at 1:30 PM, David E DeMarle
<[email protected]> wrote:
> In the mean time, you can do it via Tools->Python Shell and this script:
>
> Start up paraview and apply wavelet source for example. Then open
> python shell and do this:
>
>
> Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
>>>> from paraview.simple import *
>>>> mm = servermanager.filters.MinMax()
>>>> mm.Operation = "SUM"
>>>> print pm.GetProxiesInGroup("sources")
> {('Wavelet1', '114'): <paraview.servermanager.Wavelet object at 0x2d9c9910>}
>>>> wavelet = pm.GetProxy("sources", "Wavelet1")
>>>> out = servermanager.Fetch(wavelet, mm)
> applying operation
>>>> out.GetPointData().GetArray("RTData").GetValue(0)
>
> 1418359.5
>
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
>
> On Sat, Apr 11, 2009 at 8:28 PM, Berk Geveci <[email protected]> wrote:
>> This would be super easy to do with the python calculator (which is
>> not committed). So, I would say the answer is "yes, we are working on
>> it".
>>
>> On Sat, Apr 11, 2009 at 10:45 AM, Moreland, Kenneth <[email protected]> 
>> wrote:
>>> I’m forwarding this question to the mailing list because I am not sure.  I
>>> recall a lot of talk about aggregated operations like sum in context with
>>> the programmable filter, but I don’t remember if there is a way to do it
>>> outside that.
>>>
>>> -Ken
>>>
>>>    ****      Kenneth Moreland
>>>     ***      Sandia National Laboratories
>>> ***********
>>> *** *** ***  email: [email protected]
>>> **  ***  **  phone: (505) 844-8919
>>>     ***      web:   http://www.cs.unm.edu/~kmorel
>>>
>>>
>>> ------ Forwarded Message
>>> From: "Scott, W Alan" <[email protected]>
>>> Date: Fri, 10 Apr 2009 19:48:55 -0600
>>> To: "Moreland, Kenneth" <[email protected]>, "Brown, Alexander L"
>>> <[email protected]>
>>> Subject: sum of values at all nodes
>>>
>>> Ken,
>>> Is it possible to get a sum of all variables from all nodes into one number?
>>>  Are we planning on adding this for the future?
>>>
>>> Alan
>>>
>>> --------------------------------------------------------
>>> W. Alan Scott
>>> ParaView Support Manager
>>>
>>> GAITS
>>> Sandia National Laboratories, MS 0822
>>> Org 9326 - Building 899 2205
>>> (505) 284-0932   FAX (505) 845-0833
>>> ---------------------------------------------------------
>>>
>>>
>>>
>>>
>>>
>>> ------ End of Forwarded Message
>>>
>>> _______________________________________________
>>> 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
>>
>
_______________________________________________
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