pub enum Command {
Show 13 variants
Hello {
protocol_version: u32,
ui_version: String,
},
Seek {
frame: u32,
},
Play,
Pause,
Step {
delta: i32,
},
SetViewport {
w: u32,
h: u32,
dpr: f64,
},
SetMarker {
name: String,
time: f64,
scene: Option<String>,
},
SetEase {
name: String,
value: [f64; 4],
},
SetTunable {
name: String,
value: f64,
},
SetTransition {
scene: String,
seconds: f64,
},
Pick {
x: f64,
y: f64,
},
Select {
node_id: Option<u32>,
},
Shutdown,
}Expand description
UI → engine.
Variants§
Hello
First message after connecting; answered with Ready.
Fields
§
protocol_version: u32PROTOCOL_VERSION of the UI.
Seek
Show this frame.
Play
Start playback from the current frame.
Pause
Stop playback.
Step
Move by a number of frames.
SetViewport
Size the preview is shown at; frames are rendered at w·dpr × h·dpr,
capped at the project size.
Fields
SetMarker
Moves a marker (seconds from the start of its scene). With scene,
creates the marker there if it does not exist yet.
Fields
SetEase
Changes a named ease.
SetTunable
Changes a tunable.
SetTransition
Sets how long the transition into scene lasts, in seconds.
Pick
Hit-test at a point in frame pixels of the project size (origin
top-left). Answered with Selected.
Select
Selects a node in the inspector, or clears the selection.
Shutdown
Asks the engine to exit (native preview server).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more