X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2FVisuPrs%2FAnimation%2FD1.py;h=3775150124b797fd83817160bde4580b3c126bfc;hb=5dd1972b4751c6af8177a53f6dcc5f927aa2f40c;hp=d7e40b5624cc2eacc018be1199247a1adde60484;hpb=89c33033151baa33eeac8fb09d9c0488acb43c35;p=modules%2Fparavis.git diff --git a/test/VisuPrs/Animation/D1.py b/test/VisuPrs/Animation/D1.py index d7e40b56..37751501 100644 --- a/test/VisuPrs/Animation/D1.py +++ b/test/VisuPrs/Animation/D1.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010-2012 CEA/DEN, EDF R&D +# Copyright (C) 2010-2013 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -31,7 +31,7 @@ import paravis myParavis = paravis.myParavis # Directory for saving snapshots -picturedir = get_picture_dir(sys.argv[1], "Animation/D1") +picturedir = get_picture_dir("Animation/D1") theFileName = datadir + "TimeStamps.med" @@ -54,7 +54,7 @@ if aView is None : print "Error" else : print "OK" # Gauss Points creation -prs= GaussPointsOnField(aProxy,EntityType.CELL,'pression' , 2, theMultiplier=0.01) +prs= GaussPointsOnField(aProxy,EntityType.CELL,'pression' , 2, multiplier=0.01) prs.Visibility=1 aView.ResetCamera() print "Creating an Animation.....................", @@ -65,9 +65,10 @@ if not picturedir.endswith(os.sep): picturedir += os.sep # Select only the current field: -aProxy.PointArrays.DeselectAll() -aProxy.CellArrays.DeselectAll() -aProxy.CellArrays = ['pression'] +aProxy.AllArrays = [] +aProxy.UpdatePipeline() +aProxy.AllArrays = ['TS0/dom/ComSup0/pression@@][@@P0'] +aProxy.UpdatePipeline() # Animation creation and saving into set of files into picturedir scene = AnimateReader(aProxy,aView,picturedir+"D1_dom."+my_format)