[Paraview] Extracting results from python

Chukwudi Chukwudozie cchukw1 at tigers.lsu.edu
Wed Jul 9 00:01:04 EDT 2014


Hi,

I'm pretty new in paraview python scripting and I'm trying my hand on an
example to IntegrateVariables along a slice (plane). However, I don't know
how to extract the results of the Integrate pipeline as when I ask to
print, all I get is a memory address. Below is a snapshot of my s=python
script. Basically, after calling, IntegrateVariables0 = IntegrateVariables(
Calculator0 ), I want to be able to use the result of the integration for
other operations. How do I access it, or the syntax to use.

Slice0 = Slice()

Slice0.SliceType = "Plane"

Slice0 = GetActiveSource()

Slice0.SliceType.Origin = [0.5, 0.005, 0.5]

Slice0.SliceType.Normal = [1.0, 0.0, 0.0]

Calculator0 = Calculator( Slice0 )

Calculator0.Function = 'Volumetric Crack Opening'

IntegrateVariables0 = IntegrateVariables( Calculator0 )

print IntegrateVariables0




Chuks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140708/a405ce9a/attachment-0001.html>


More information about the ParaView mailing list