use_spline#
- anim_keyframe.use_spline(p0: str) int #
Enable spline interpolation for keyframe animation translations and look at/from changes.
You must have more than 2 keyframes for spline interpolation.- Args:
- p0:
‘toggle’
ON
OFF
- Examples:
ensight.anim_keyframe.keyframing("ON") ensight.anim_keyframe.create_keyframe() ensight.view_transf.translate(5,0,0) ensight.anim_keyframe.create_keyframe() ensight.view_transf.translate(0,5,0) ensight.anim_keyframe.create_keyframe() ensight.anim_keyframe.use_spline("ON") ensight.anim_keyframe.acceleration("3","ON") ensight.anim_keyframe.run()
- Returns:
zero on success, non-zero on error