python - How to embed animation into ParaView scene from script? -
so try add animation scene in paraview using python. started wiki script. animation plays when scene.play()
called. while playing paraview (5.0.1 in case) stuck window paying animation - scene can not rotated while playing, buttons cannot pushed. how keep editor alive in paraview animation script?
also when click on editor animation play scene
button nothing played @ all.
i wonder how embed animation scene playable , savable paraview editor?
that wiki example appears little dated.
try in script instead:
# active source. sphere1 = getactivesource() # animation track sphere1startthetatrack = getanimationtrack('starttheta', index=0, proxy=sphere1) # create keyframes animation track # create key frame keyframe1 = compositekeyframe() # create key frame keyframe2 = compositekeyframe() keyframe2.keytime = 1.0 keyframe2.keyvalues = [360.0] # initialize animation track sphere1startthetatrack.keyframes = [keyframe1, keyframe2] # animation scene animationscene = getanimationscene() animationscene.play()
you should able interact visualization while animation runs , start or stop animation controls.
note used paraview's python trace feature arrive @ code example.
Comments
Post a Comment