EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Tests: QA scenarios ask for image sequences explicitly (#2018)
bflatastic4c787734fdfc
diff --git a/crates/automation/tests/qa/compositing.rs b/crates/automation/tests/qa/compositing.rsindex da78ae116..d5de8f687 100644--- a/crates/automation/tests/qa/compositing.rs+++ b/crates/automation/tests/qa/compositing.rs@@ -35,7 +35,7 @@ fn import_footage(qa: &mut Qa) -> (Value, Value) {// Footage: the sequence, and a layered PSD written by the app itself (Save Frame As ▸// Photoshop Layers) from a small comp.let seq = write_sequence(qa);- let imp = qa.exec("file.import", json!({"paths": [seq]}));+ let imp = qa.exec("file.import", json!({"paths": [seq], "sequence": true}));let seq_item = imp["items"][0].clone();let project = qa.tool("get_project", json!({}));let it = project["items"].as_array().unwrap().iter().find(|i| i["id"] == seq_item).unwrap().clone();diff --git a/crates/automation/tests/qa/tracking.rs b/crates/automation/tests/qa/tracking.rsindex 837872658..ee6bbb2e9 100644--- a/crates/automation/tests/qa/tracking.rs+++ b/crates/automation/tests/qa/tracking.rs@@ -52,7 +52,7 @@ fn shake_offset(f: u32) -> (i64, i64) {/// Import a sequence at 12 fps and make a comp of it; returns (comp, layer).fn plate_comp(qa: &mut Qa, first: &str, name: &str) -> (Value, Value) {- let item = qa.exec("file.import", json!({"paths": [first]}))["items"][0].clone();+ let item = qa.exec("file.import", json!({"paths": [first], "sequence": true}))["items"][0].clone();qa.exec("file.interpretFootage", json!({"items": [item.clone()], "frameRate": 12}));let comp = qa.exec("comp.new", json!({"name": name, "width": 160, "height": 90, "frameRate": 12, "duration": 1}))["comp"].clone();let layer = qa.exec("layer.addItem", json!({"item": item}))["layer"].clone();diff --git a/docs/agents.md b/docs/agents.mdindex d84442a84..9ba2eed44 100644--- a/docs/agents.md+++ b/docs/agents.md@@ -272,10 +272,10 @@ build real projects through these interfaces; they are worked examples of everytthen `keys.velocity {"outSpeed":0,"outInfluence":33.33}`.* **Gradients**: `set_property {"path":"contents/gfill/colors","value":["#0080ff","#ffff00"]}` or`{"colors":[[0,"#0080ff"],[1,[1,1,0]]],"opacities":[[0,1],[1,0.5]]}`.-* **Image sequences**: `file.import {"paths":["/r/shot_0001.png"]}` imports the file's whole- numbered run as one item (several picked frames: that range; a folder: each run in it;- `"sequence": false`: one still; dropped files, `"drag": true`, import as stills unless- `"sequence": true`, as in After Effects; `"alphabetical": true`: Force Alphabetical Order, the files+* **Image sequences**: `file.import {"paths":["/r/shot_0001.png"], "sequence": true}` imports the+ file's whole numbered run as one item (several picked frames: that range; a folder: each run in+ it, also without `sequence`). Without `"sequence": true` a picked or dropped numbered file imports+ as one still, as in After Effects; `"alphabetical": true`: Force Alphabetical Order, the filesplay one after another) at `frameRate` or 30 fps (Settings ▸ Import). Missing frames showcolour bars, as in After Effects. `file.interpretFootage {"items":[id], "frameRate":12,"startTimecode":1001}` conforms them and sets Override Start (the item and layers that ran to its end get the new