EXPORT_PYSCRIPTS = libVISU_Swig.py batchmode_visu.py batchmode_visu_table.py batchmode_visu_view3d.py \
visu_med.py visu_view3d.py visu.py visu_gui.py visu_prs_example.py \
visu_table.py visu_big_table.py visu_view.py visu_delete.py \
- visu_swig_test.py visu_split_views.py \
+ visu_swig_test.py visu_split_views.py visu_succcessive_animation.py \
VISU_Example_01.py VISU_Example_02.py VISU_Example_03.py VISU_Example_04.py \
VISU_Example_05.py VISU_Example_06.py VISU_Example_07.py
EXPORT_SHAREDPYSCRIPTS = VISU_shared_modules.py
#mySession = batchmode_visu.mySession
myViewManager = myVisu.GetViewManager();
-
+"""
myView = myViewManager.Create3DView();
myView.SetTitle("The window will be soon destroyed!")
print "myViewManager.Create3DView()"
time.sleep(aDelay)
myView.Display(aContainer)
-
-
+"""
myView = myViewManager.Create3DView();
myView.SetTitle("The viewer for Animation")
print "myViewManager.Create3DView()"
time.sleep(aDelay)
-medFile = "TimeStamps.med"
-myFieldName = "vitesse";
+medFile = "carre_en_quad4.med" #"TimeStamps.med"
+myFieldName = "fieldnodedouble" #"vitesse";
-medFile = os.getenv('DATA_DIR') + '/MedFiles/' + medFile
+medFile = os.getenv('DATA_DIR') + medFile
myResult = myVisu.ImportFile(medFile)
anAnim = myVisu.CreateAnimation(myView);
aSObj = myStudy.FindObjectIOR(myResult.GetID())
aSObj = aSObj.FindSubObject(1)[1]
aSObj = aSObj.FindSubObject(3)[1]
-aSObj = aSObj.FindSubObject(2)[1]
-anAnim.addField(aSObj)
+aSObj = aSObj.FindSubObject(1)[1] #(2)[1]
+#anAnim.addField(aSObj)
+
+medFile1 = "pointe.med" #"hexa_28320_ELEM.med"
+myFieldName1 = "fieldnodedouble" #"vitesse_elem_dom_pb1";
+
+medFile1 = os.getenv('DATA_DIR') + medFile1
+myResult1 = myVisu.ImportFile(medFile1)
+
+aSObj1 = myStudy.FindObjectIOR(myResult1.GetID())
+aSObj1 = aSObj1.FindSubObject(1)[1]
+aSObj1 = aSObj1.FindSubObject(3)[1]
+aSObj1 = aSObj1.FindSubObject(1)[1] #(2)[1]
+anAnim.addField(aSObj1)
+
anAnim.setPresentationType(0,VISU.TISOSURFACE)
print "Generate presentations"
anAnim.generatePresentations(0)
print "Generate frames"
anAnim.generateFrames()
print "Start Animation"
-anAnim.setSpeed(99)
+anAnim.setSpeed(1)
#anAnim.setCycling(1)
anAnim.startAnimation()
myView.FitAll()