Skip to main content

CinematicSequencer

Struct CinematicSequencer 

Source
pub struct CinematicSequencer {
Show 26 fields pub master_sequence: Sequence, pub sequences: HashMap<u64, Sequence>, pub tracks: TrackCollection, pub shot_list: ShotList, pub screen_flashes: Vec<ScreenFlashEvent>, pub rumble_events: Vec<RumbleEvent>, pub slow_mo_events: Vec<SlowMotionEvent>, pub letterbox_events: Vec<LetterboxEvent>, pub chapter_markers: Vec<ChapterMarker>, pub branching_triggers: Vec<BranchingTrigger>, pub playback: PlaybackController, pub prev_eval_time: f64, pub undo_history: SequencerUndoHistory, pub selection: SequencerSelection, pub curve_editor: CurveEditorState, pub active_camera_id: Option<u64>, pub blend_from_camera: Option<u64>, pub camera_blend_t: f32, pub camera_blend_duration: f32, pub letterbox_amount: f32, pub current_time_scale: f32, pub auto_key: bool, pub auto_key_mode: AutoKeyMode, pub default_interp: InterpType, pub show_all_tracks: bool, pub track_height: f32,
}

Fields§

§master_sequence: Sequence§sequences: HashMap<u64, Sequence>§tracks: TrackCollection§shot_list: ShotList§screen_flashes: Vec<ScreenFlashEvent>§rumble_events: Vec<RumbleEvent>§slow_mo_events: Vec<SlowMotionEvent>§letterbox_events: Vec<LetterboxEvent>§chapter_markers: Vec<ChapterMarker>§branching_triggers: Vec<BranchingTrigger>§playback: PlaybackController§prev_eval_time: f64§undo_history: SequencerUndoHistory§selection: SequencerSelection§curve_editor: CurveEditorState§active_camera_id: Option<u64>§blend_from_camera: Option<u64>§camera_blend_t: f32§camera_blend_duration: f32§letterbox_amount: f32§current_time_scale: f32§auto_key: bool§auto_key_mode: AutoKeyMode§default_interp: InterpType§show_all_tracks: bool§track_height: f32

Implementations§

Source§

impl CinematicSequencer

Source

pub fn new(name: &str, duration: f64, fps: FrameRate) -> Self

Source

pub fn add_camera_track(&mut self, name: &str) -> u64

Source

pub fn add_actor_track(&mut self, name: &str, entity_id: u64) -> u64

Source

pub fn add_animation_track(&mut self, name: &str, entity_id: u64) -> u64

Source

pub fn add_audio_track(&mut self, name: &str) -> u64

Source

pub fn add_vfx_track(&mut self, name: &str) -> u64

Source

pub fn add_light_track(&mut self, name: &str, entity_id: u64) -> u64

Source

pub fn add_post_fx_track(&mut self, name: &str) -> u64

Source

pub fn add_subtitle_track(&mut self, name: &str) -> u64

Source

pub fn add_event_track(&mut self, name: &str) -> u64

Source

pub fn add_transform_track(&mut self, name: &str, entity_id: u64) -> u64

Source

pub fn add_blend_shape_track(&mut self, name: &str, entity_id: u64) -> u64

Source

pub fn add_visibility_track(&mut self, name: &str, entity_id: u64) -> u64

Source

pub fn add_time_dilation_track(&mut self, name: &str) -> u64

Source

pub fn remove_track(&mut self, id: u64)

Source

pub fn add_camera_keyframe(&mut self, track_id: u64, kf: CameraKeyframe)

Source

pub fn add_actor_keyframe(&mut self, track_id: u64, kf: ActorKeyframe)

Source

pub fn add_subtitle(&mut self, track_id: u64, kf: SubtitleKeyframe)

Source

pub fn add_event(&mut self, track_id: u64, ev: EventKeyframe)

Source

pub fn add_screen_flash( &mut self, time: f64, color: Vec4, duration: f64, intensity: f32, )

Source

pub fn add_rumble( &mut self, time: f64, duration: f64, intensity: f32, frequency: f32, )

Source

pub fn add_slow_mo(&mut self, time: f64, duration: f64, scale: f32)

Source

pub fn add_letterbox(&mut self, time: f64, duration: f64)

Source

pub fn add_chapter(&mut self, time: f64, name: &str)

Source

pub fn add_shot( &mut self, name: &str, start: f64, end: f64, camera_id: u64, ) -> u64

Source

pub fn current_shot(&self) -> Option<&Shot>

Source

pub fn cut_to_camera(&mut self, camera_id: u64)

Source

pub fn blend_to_camera(&mut self, camera_id: u64, duration: f32)

Source

pub fn update_camera_blend(&mut self, dt: f32)

Source

pub fn blended_camera_matrix(&self, time: f64) -> Mat4

Source

pub fn evaluate_frame(&mut self, dt: f32) -> FrameEvalResult

Source

pub fn update(&mut self, dt: f32)

Source

pub fn play(&mut self)

Source

pub fn pause(&mut self)

Source

pub fn stop(&mut self)

Source

pub fn scrub(&mut self, t: f64)

Source

pub fn set_loop_region(&mut self, start: f64, end: f64)

Source

pub fn goto_next_chapter(&mut self)

Source

pub fn goto_prev_chapter(&mut self)

Source

pub fn undo(&mut self)

Source

pub fn redo(&mut self)

Source

pub fn copy_selected_keyframes(&mut self)

Source

pub fn paste_keyframes_at(&mut self, target_time: f64)

Source

pub fn export_edl(&self) -> EdlDocument

Source

pub fn export_subtitles_srt(&self) -> String

Source

pub fn bake_to_frames(&self, output_fps: FrameRate) -> Vec<FrameEvalResult>

Source

pub fn stats(&self) -> SequencerStats

Source

pub fn set_duration(&mut self, duration: f64)

Source

pub fn expand_to_fit_tracks(&mut self)

Source

pub fn convert_fps(&mut self, new_fps: FrameRate)

Source

pub fn nearest_camera_keyframe(&self, track_id: u64, time: f64) -> Option<f64>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more