load_type#
- anim_flipbook.load_type(p0: str) int #
Specifies the type of flipbook animation to load.
- Args:
- p0:
‘option’ transient_data
- p1:
‘option’ mode_shapes
- p2:
‘option’ create_data
- p3:
‘option’ linear_load
- Examples:
# # Example of <transient_data> # # Note: transient dataset w/83 time steps... # # Specify a transient_data flipbook # ensight.anim_flipbook.load_type("transient_data") # # Specify page increment # ensight.anim_flipbook.step_by(1.0000e+01) # # Set begin/end flipbook time info # ensight.anim_flipbook.begin_time_step(0) ensight.anim_flipbook.end_time_step(83) ensight.anim_flipbook.specify_time_as("step") # # Load flipbook pages {0,10,20,30,40,50,60,70,80} # ensight.anim_flipbook.load() # # Run loaded flipbook # ensight.anim_flipbook.run_type("auto")
# # Example of <create_data> # # (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")
# # Example of <mode_shapes> # # Note: Prior to animating modes shapes ... activate and # displace displacement vector variable on selected parts. # ensight.variables.activate("3D_Displacement") ensight.part.select_all() ensight.part.modify_begin() ensight.part.displace_by("3D_Displacement") ensight.part.modify_end() # # # ensight.anim_flipbook.load_type("mode_shapes") ensight.anim_flipbook.number_to_create(10) ensight.anim_flipbook.load() ensight.anim_flipbook.run_type("auto")
# # Followed by example of <linear_load> # # Delete current flipbook # ensight.anim_flipbook.delete_all_pages() # # Load and run 10 linear_load flipbook pages # ensight.anim_flipbook.load_type("linear_load") ensight.anim_flipbook.number_to_create(10) ensight.anim_flipbook.load() ensight.anim_flipbook.run_type("auto")
- Returns:
zero on success, non-zero on error