X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FVISU_SWIG%2Fvisu_apply_properties_successive.py;h=d740344411b6343673b5657dd241139039740a49;hb=c188b10fa9d871f25af8bae51f773c0290e8a91e;hp=d70fce98aeef01debdf9a35ffc7e7c6fbf88e9f4;hpb=d90eeb25287fa1f390fe7a336547e74161708e44;p=modules%2Fvisu.git diff --git a/src/VISU_SWIG/visu_apply_properties_successive.py b/src/VISU_SWIG/visu_apply_properties_successive.py index d70fce98..d7403444 100644 --- a/src/VISU_SWIG/visu_apply_properties_successive.py +++ b/src/VISU_SWIG/visu_apply_properties_successive.py @@ -1,24 +1,26 @@ -# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE # -# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License. +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. # -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. # -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # + # VISU VISU_SWIG : binding of C++ implementation and Python # File : visu_apply_properties_consecutive.py # Module : VISU @@ -28,10 +30,13 @@ import time import math import VISU import SALOMEDS +import salome from visu_gui import * aDelay = 0 +myVisu.SetCurrentStudy(salome.myStudy) + myViewManager = myVisu.GetViewManager(); myView = myViewManager.Create3DView(); @@ -54,7 +59,7 @@ aSObj = aSObj.FindSubObject(3)[1] aSObj = aSObj.FindSubObject(1)[1] print "addField 1 : ", anAnim.addField(aSObj) -medFile1 = "TimeStamps_import22.med" +medFile1 = "TimeStamps.med" myFieldName1 = "pression" medFile1 = os.getenv('DATA_DIR') + '/MedFiles/' + medFile1