mor.utility.sceneCreation.addAnimation
- addAnimation(node, phase, timeExe, dt, listObjToAnimate)[source]
Add/or not animations defined by
ObjToAnimate
to thesplib.animation.AnimationManagerController
thanks tosplib.animation.animate
argument
type
definition
node
from which node will search & add animation
phase
list(int)
list of 0/1 that according to its index will activate/desactivateaObjToAnimate
contained in listObjToAnimatetimeExe
sc
correspond to the total SOFA execution duration the animation will occure,determined with nbIterations (ofReductionAnimations
)multiply by the dt of the current scenedt
sc
time step of our SOFA scene
listObjToAnimate
list(
mor.reduction.container.objToAnimate
)list conaining all the ObjToAnimate that will be use to shake our model
Thanks to the location parameters of an
ObjToAnimate
, we find the component or Sofa.node it will animate. If its a Sofa.node we search something to animate by default CableConstraint/SurfacePressureConstraint.- Returns:
None