I am not able to reproduce a crash using ParaView 3.8RC2. Using the included 
Python script, you may play the scene for as long as you want. Modify the file 
name to read your own copy of RectGrid.vtk from the ParaViewData distribution.

run with pvpython, and it will play for ever.

-----------------
Jean M. Favre
Swiss National Supercomputing Center
# written by Jean M Favre, CSCS
# tested with pvpython (version 3.8RC2)
# Linux x86_64

try: paraview.simple
except: from paraview.simple import *

RenderView1 = GetRenderView()
RenderView1.CameraPosition = [-1.7629399757707529, -4.7137283451514644, 1.962186624885583]
RenderView1.CameraFocalPoint = [-0.2270284531289429, -0.32511360838334141, 0.58205443688071656]
RenderView1.CameraParallelScale = 1
RenderView1.CenterOfRotation = [-4.8756599426269531e-05, 0.031170248985290527, 0.53652715682983398]
RenderView1.CameraParallelProjection = 1
RenderView1.CameraViewUp = [0.12272189248027982, 0.2583895303191921, 0.95821406153713184]

SetActiveView(RenderView1)

RectGrid2_vtk = LegacyVTKReader( guiName="RectGrid2.vtk", FileNames=['/local/data/ParaViewData/Data/RectGrid2.vtk'] )
RectGrid2_vtk.UpdatePipeline()

ExtractSubset1 = ExtractSubset( guiName="ExtractSubset1", IncludeBoundary=0, VOI=[1, 1, 0, 32, 0, 10], SampleRateK=2, SampleRateJ=3, SampleRateI=1 )

SetActiveSource(RectGrid2_vtk)
StreamTracerWithCustomSource1 = StreamTracerWithCustomSource( guiName="StreamTracerWithCustomSource1", MaximumError=9.9999999999999995e-07, IntegratorType='Runge-Kutta 2', MaximumStepLength=0.5, InitialStepLength=0.20000000000000001, Source=ExtractSubset1, Vectors=['POINTS', 'vectors'], TerminalSpeed=9.9999999999999998e-13, IntegrationDirection='FORWARD', MaximumSteps=2000, IntegrationStepUnit='Cell Length', MinimumStepLength=0.01, MaximumStreamlineLength=2.5 )

a1_scalars_PiecewiseFunction = CreatePiecewiseFunction( Points=[0.0, 0.0, 1.0, 1.0] )

a1_scalars_PVLookupTable = GetLookupTableForArray( "scalars", 1, Discretize=1, RGBPoints=[0.0, 0.23000000000000001, 0.29899999999999999, 0.754, 1.8473368883132935, 0.70599999999999996, 0.016, 0.14999999999999999], UseLogScale=0, VectorComponent=0, NumberOfTableValues=256, ColorSpace='Diverging', VectorMode='Magnitude', HSVWrap=0, ScalarRangeInitialized=1.0, LockScalarRange=0 )

DataRepresentation1 = Show()
DataRepresentation1.Visibility = 1
DataRepresentation1.ColorArrayName = 'scalars'
DataRepresentation1.LookupTable = a1_scalars_PVLookupTable

SetActiveSource(StreamTracerWithCustomSource1)
Contour1 = Contour( guiName="Contour1", Isosurfaces=[1.0], PointMergeMethod="Uniform Binning", ComputeNormals=0, ComputeGradients=0, ComputeScalars=1, ContourBy=['POINTS', 'IntegrationTime'] )
Contour1.UpdatePipeline()

DataRepresentation2 = Show()
DataRepresentation2.Visibility = 1
DataRepresentation2.ColorArrayName = 'scalars'
DataRepresentation2.LookupTable = a1_scalars_PVLookupTable

SetActiveSource(Contour1)
Glyph1 = Glyph( GlyphType="Arrow" )
Glyph1.Scalars = ['POINTS', 'scalars']
Glyph1.SetScaleFactor = 0.2
Glyph1.ScaleMode = 'off'
Glyph1.Vectors = ['POINTS', 'vectors']

DataRepresentation3 = Show()
DataRepresentation3.Visibility = 1
DataRepresentation3.ColorArrayName = 'scalars'
DataRepresentation3.LookupTable = a1_scalars_PVLookupTable

Render()

# Create an animation scene
scene = servermanager.animation.AnimationScene()
# Add one view
scene.ViewModules = [GetActiveView()]

cue = servermanager.animation.KeyFrameAnimationCue()
cue.AnimatedProxy = Contour1
cue.AnimatedPropertyName = 'ContourValues'
# Add it to the scene's cues
scene.Cues = [cue]
 
# Create 2 keyframes for the Isosurface threshold
keyf0 = servermanager.animation.CompositeKeyFrame()
keyf0.Interpolation = 'Ramp'
# At time = 0, value = 0
keyf0.KeyTime = 0
keyf0.KeyValues= [0]
 
keyf1 = servermanager.animation.CompositeKeyFrame()
# At time = 1.0, value = 14.2
keyf1.KeyTime = 1.0
keyf1.KeyValues= [14.2]
 
# Add keyframes.
cue.KeyFrames = [keyf0, keyf1]

servermanager.ToggleProgressPrinting()
scene.NumberOfFrames = 300
scene.Loop = 1
scene.Play()

_______________________________________________
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