mirror of
https://github.com/storytold/filmcraft.git
synced 2026-10-14 19:26:59 -04:00
Engine: list edge, params and reverse in the sequence.applyAudioTransition schema (#1100)
This commit is contained in:
1 parent
0800a8b0aa
commit
4823952c03
2 files changed
+9
-1
No files matched your search
@@ -1740,7 +1740,7 @@ fn build() -> Vec<CommandSpec> {
|
||||
"Apply Audio Transition",
|
||||
["Sequence"],
|
||||
Some("Cmd+Shift+D"),
|
||||
r#"{"clip":id?,"effect":str?,"frames":i64?}"#,
|
||||
r#"{"clip":id?,"effect":"constant_power|Constant Power|…"?,"frames":i64?,"edge":"in"|"out"?,"params":{param:value}?,"reverse":bool?}"#,
|
||||
has_seq,
|
||||
|s, p| apply_transition(s, p, TrackKind::Audio)
|
||||
),
|
||||
|
||||
@@ -520,3 +520,11 @@ fn surround_sequence_settings_and_panner_lanes() {
|
||||
assert!(s.execute("file.newSequence", json!({"mix": "7.1"})).is_err());
|
||||
s.execute("file.newSequence", json!({"trackType": "Standard"})).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn audio_transition_schema_lists_edge_params_and_reverse() {
|
||||
let params = find_command("sequence.applyAudioTransition").unwrap().params;
|
||||
for key in ["\"edge\"", "\"params\"", "\"reverse\"", "constant_power"] {
|
||||
assert!(params.contains(key), "schema `{params}` is missing {key}");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user