Salome HOME
Merge branch 'origin/agy/feedbackads140304'
[modules/paravis.git] / test / VisuPrs / Animation / A0.py
old mode 100755 (executable)
new mode 100644 (file)
index ccb5112..b9d86fc
@@ -31,7 +31,7 @@ import paravis
 myParavis = paravis.myParavis
 
 # Directory for saving snapshots
-picturedir = get_picture_dir(sys.argv[1], "Animation/A0")
+picturedir = get_picture_dir("Animation/A0")
 
 theFileName = datadir +  "TimeStamps.med"
 print " --------------------------------- "
@@ -64,9 +64,10 @@ if not picturedir.endswith(os.sep):
     picturedir += os.sep
 
 # Select only the current field:
-aProxy.CellArrays.DeselectAll()
-aProxy.PointArrays.DeselectAll()
-aProxy.PointArrays = ['vitesse']
+aProxy.AllArrays = []
+aProxy.UpdatePipeline()
+aProxy.AllArrays = ['TS0/dom/ComSup0/vitesse@@][@@P1']
+aProxy.UpdatePipeline()
    
 # Animation creation and saving into set of files into picturedir
 scene = AnimateReader(aProxy,aView,picturedir+"A0_dom."+my_format)
@@ -84,6 +85,6 @@ scene.PlayMode = 1 #  set RealTime mode for animation performance
 # set period
 scene.Duration = 40 # correspond to set the speed of animation in VISU 
 scene.GoToFirst()
-scene.Loop = 1
+scene.Loop = 0
 print "Animation.................................",
 scene.Play()