explode_view#

anim_quick.explode_view(p0: str) int#

Sets up an exploded view quick animation.

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

‘toggle’

  • ON

  • OFF

Examples:
#
# turn on keyframe animation
#
ensight.anim_keyframe.keyframing("ON")
#
# create an exploded view about 2,0,0 in the x direction.
# The exploded distance is set to 200 units
#
ensight.anim_quick.explode_view("ON")
ensight.anim_quick.explode_origin(2,0,0)
ensight.anim_quick.explode_direction("x")
ensight.anim_quick.explode_distance(200)
#
# while rotating the scene about the x axis 2 revolutions positive direction
#
ensight.anim_quick.rotate_objects("ON")
ensight.anim_quick.rotate_direction("x positively")
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