file.importProject: import an EffectCraft project into the open project
File > Import > EffectCraft Project (and .ecproj/.ecprojx given to File > Import) merges the project into a folder named after the file, with every id shifted past the open project's, in one undo step. Relative footage resolves next to the file; the result lists comps, root comps, primaryComp and missing media. offset_ids now shifts tracker Motion Targets and saturates instead of overflowing; fix_next_id saturates too, so a damaged file can't overflow on open or import. Menu entry translated in all ten menu catalogues. Rebased onto current upstream main for the split of #858 (test module list in engine lib.rs; es/pt-br/ru/fr/de/cs menu translations). (cherry picked from commit 19c653fccc95133fb35e978a7f7f20a18c0e8c89) (cherry picked from commit 4e751ad2) (cherry picked from commit ceed706cc3b5f3755769738a1ddb3d965a94ab6b)
This commit is contained in:
@@ -1239,6 +1239,7 @@ fn file_dialog(app: &mut EffectcraftApp, id: &str, params: &Value) -> Option<Res
|
||||
"view.importGuides" => ("path", Ask::Open(&["json"])),
|
||||
"file.exportLottie" => ("path", Ask::Save("Animation.json")),
|
||||
"file.importLottie" => ("path", Ask::Open(&["json", "lottie"])),
|
||||
"file.importProject" => ("path", Ask::Open(&["ecproj", "ecprojx"])),
|
||||
"file.importTimeline" => ("path", Ask::Open(&["xml", "fcpxml", "otio", "edl", "aaf", "omf"])),
|
||||
"render.saveCurrentPreview" => ("path", Ask::Save("Preview.mp4")),
|
||||
"file.runScript" if params.get("name").is_none() => ("path", Ask::Open(&["jsx", "js", "jsonl", "json", "txt"])),
|
||||
|
||||
Reference in New Issue
Block a user