Hi,
I also want to know if there is a simple way to do, since I only have
the somewhat redundant code:
---
source = GetActiveSource()
#options for component: -1, 0, 1 and 2 => Mag, X, Y, Z
component = -1
cdi = source.GetDataInformation().GetCompositeDataInformation()
for i in range(cdi.GetNumberOfChildren()):
print 'Block Name: ', cdi.GetName(i)
data = cdi.GetDataInformation(i).GetCellDataInformation()
for j in range(data.GetNumberOfArrays()):
array = data.GetArrayInformation(j)
arrayName = array.GetName()
dataRange = array.GetComponentRange(component)
print arrayName, dataRange
---
Thanks,
yoshimi
2017-04-12 6:10 GMT+09:00 Jamison, Ryan Dale <[email protected]>:
> Hello Everyone,
>
> I’m wanting to gain more control over automation with my paraview python
> scripts. This time around, I’d like to be able to extract information from
> the model and use it in my python script.
>
> For example, I’d like to extract the minimum and maximum values of a cell
> variable from a specific block and use those values in the python script.
> Once I extract this information, I’d use it for some additional processing.
> Something like:
>
> minValue, maxValue = someCoolParaviewFunction(blockName, variableName)
>
> Is this possible? If so, any suggestions on how to do it?
>
> Thanks,
>
> Ryan
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview