acceleration#
- anim_keyframe.acceleration(p0: str, p1: str) int #
Toggle acceleration into/out of a keyframe.
- Args:
- p0:
‘keyframe’ The keyframe number to apply the acceleration
- p1:
‘toggle’
ON
OFF
- Examples:
ensight.anim_keyframe.keyframing("ON") ensight.anim_keyframe.create_keyframe() ensight.view_transf.rotate(20,30,5) ensight.view_transf.translate(5,0,0) ensight.anim_keyframe.create_keyframe() # # accelerate out of keyframe 1 # ensight.anim_keyframe.acceleration("1","ON") ensight.anim_keyframe.use_spline("ON") # # deaccelerate into keyframe 2 # ensight.anim_keyframe.acceleration("2","ON") ensight.anim_keyframe.run()
- Returns:
zero on success, non-zero on error