dynamic_value#

anim_flipbook.dynamic_value(p0: float, p1: float, p2: float) int#

Specify dynamic flipbook animation of the selected isosurface, xyz-clip, or ijk-clip part, within the appropriate specified dynamic ranges.

Used for flipbook animations of interactive isosurface, ijk-clip, and xyz-clip parts. Only applicable between commands:
anim_flipbook: interactive_part start
anim_flipbook: interactive_part stop
Args:
p0:

‘part’ GUI part number of the part to be animated

p1:

‘start_value’ the starting dynamic value of the animation

p2:

‘end_value’ final dynamic value of the animation, i.e. the ending isosurface value; x, y, or z clip value; or i, j, or k value of the respective isosurface, xyz clip, or ijk clip part

Examples:
#
# (Note: A clip part has already been generated via the
#        XYZ clip part feature and colored by a variable.)
#
# Update the 2D clip part clip at 
#
ensight.part.select_begin(2)
ensight.part.modify_begin()
ensight.clip.mesh_plane("X")
ensight.clip.tool("xyz")
ensight.clip.value(1.000000)
ensight.part.modify_end()
#
# Specify type of flipbook
#
ensight.anim_flipbook.load_type("create_data")
#
# Setup interactive flipbooking of the clip part number 2
# from values 1. to 3.
#
ensight.anim_flipbook.interactive_part("start")
ensight.part.select_begin(2)
ensight.part.modify_begin()
ensight.clip.value(3.000000)
ensight.part.modify_end()
ensight.anim_flipbook.dynamic_value(2,1.000000,3.000000)
ensight.anim_flipbook.interactive_part("stop")
#
# Load 10 flipbook pages
#
ensight.anim_flipbook.number_to_create(10)
ensight.anim_flipbook.load()
#
# Run loaded flipbook pages
#
ensight.anim_flipbook.run_type("auto")
Returns:

zero on success, non-zero on error