Skip to main content

ss_runtime_set_animation_section

Function ss_runtime_set_animation_section 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_set_animation_section( context: *mut c_void, start_frame: c_int, end_frame: c_int, ) -> bool
Expand description

Limits playback to [start_frame, end_frame], both ends included. An end out of the animation’s range (-1, say) is the animation’s edge on that side. Returns false, with InvalidParameter for ss_runtime_get_last_error, when both ends are in range and the end is before the start; the section and the playhead stay as they were.