timeline_start_time#
- anim_keyframe.timeline_start_time(p0: float) int #
Sets the start/end timeline value if being specified.
Only used if “anim_keyframe: timeline_start/end_type specify” is also set.- Args:
- p0:
‘time_value’ The time value (simulation) for the start/end of the timeline
- Examples:
# # turn on keyframing and create 4 keyframes # ensight.anim_keyframe.keyframing("ON") ensight.anim_keyframe.create_keyframe() ensight.anim_keyframe.create_keyframe() ensight.anim_keyframe.create_keyframe() ensight.anim_keyframe.create_keyframe() # # transient data (and timelines) will be used during the animation # ensight.anim_keyframe.use_transient_data("ON") # # ensight.anim_keyframe.timeline_select(1) # # the first timeline goes from keyframe 2 to 3 (i.e, no transient # data is used for keyframe 1 to 2) # ensight.anim_keyframe.timeline_start_keyframe(2) ensight.anim_keyframe.timeline_end_keyframe(3) # # At keyframe 2 the "Begin" (as defined in the solution time dialog) # time is used. At keyframe 3 the "End" time is used. # ensight.anim_keyframe.timeline_start_type("use_begin") ensight.anim_keyframe.timeline_end_type("use_end") # # Create a new timeline and select it for editing # ensight.anim_keyframe.timeline_new() ensight.anim_keyframe.timeline_select(2) # # This timeline goes from keyframe 3 to 4 # ensight.anim_keyframe.timeline_start_keyframe(3) ensight.anim_keyframe.timeline_end_keyframe(4) # # At keyframe 3 the current time will be used (which will # be the "End" time since the first timeline ends with this time # At keyframe 4 we set time to be 40. # ensight.anim_keyframe.timeline_start_type("use_current") ensight.anim_keyframe.timeline_end_type("specify") ensight.anim_keyframe.timeline_end_time(40.)
- Returns:
zero on success, non-zero on error