rotate_objects#

anim_quick.rotate_objects(p0: str) int#

Sets up a scene rotation for quick animation.

The rotation is not added until a “anim_quick: create_keyframes” command.
The rotation can be used in combination with “fly_around” and “explode_view”
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
#
# turn on keyframe animation
#
ensight.anim_keyframe.keyframing("ON")
#
# move the camera to the right one half revolution
#
ensight.anim_quick.fly_around("ON")
ensight.anim_quick.fly_direction("right")
ensight.anim_quick.fly_revolutions(0.5)
#
# while rotating the scene about the x axis 2 revolutions negative direction
#
ensight.anim_quick.rotate_objects("ON")
ensight.anim_quick.rotate_direction("x negatively")
ensight.anim_quick.rotate_revolutions("x",2.000000)
#
# accelerate at the first keyframe but not at the last
#
ensight.anim_quick.accelerate_first("ON")
ensight.anim_quick.accelerate_last("OFF")
#
# create a total of 125 frames 
# 
ensight.anim_quick.total_frames(125)
ensight.anim_quick.create_keyframes()
Returns:

zero on success, non-zero on error