number_to_create#
- anim_flipbook.number_to_create(p0: int) int #
Specify the number of pages to create in the flipbook animation.
- Args:
- p0:
‘number’ (positive) number of pages to create
- 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 # 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