Import: missing sequence frames show a placeholder, as in After Effects (#297)
After Effects shows a missing frame of an image sequence as a placeholder (colour bars) and has no Hold Previous Frame or Skip choice in Interpret Footage, so EffectCraft doesn't either. Interpret Footage loses its Missing Frames field, file.interpretFootage its missingFrames parameter, and Footage its missing_frames setting. A gap in a numbered sequence's numbering always shows colour bars. A sequence imported with Force Alphabetical Order still plays its files one after another (its numbering doesn't count), as in After Effects; that is now an internal Footage.alphabetical flag, set on import and kept by Reload. The Interpret Footage note lists the missing frames. Projects saved before this have no such field and open with the After Effects behaviour: a sequence with gaps shows placeholders where it used to close them up. Test: project sequence unit tests (placeholders, alphabetical order, projects saved without the flag), tests_sequence (Start Frame instead of Hold / Skip), sequence_gaps_show_placeholders (media) and the Interpret Footage fields in ui_drag_drop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
50c9549529
commit
efd348335f
@@ -22,7 +22,6 @@ pub use effectcraft_color::ColorSpace;
|
||||
use effectcraft_color::{BlendMode, Label};
|
||||
use effectcraft_time::{FrameRate, Tick};
|
||||
pub use props::{Expression, FeatherFalloff, GroupKind, MaskMode, MaskMotionBlur, Node, ParamUi, PropGroup, Property, Uid, parse_path};
|
||||
pub use sequence::MissingFrames;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub use effectcraft_keyframe as keyframe;
|
||||
@@ -965,9 +964,11 @@ pub struct Footage {
|
||||
/// PDF / Illustrator footage: the page shown (0-based; File ▸ Import ▸ Page).
|
||||
#[serde(default, skip_serializing_if = "is_default")]
|
||||
pub page: u32,
|
||||
/// Image sequences: Interpret Footage ▸ Missing Frames ([`sequence`]).
|
||||
#[serde(default, skip_serializing_if = "is_default")]
|
||||
pub missing_frames: MissingFrames,
|
||||
/// Image sequences imported with Force Alphabetical Order: the files play one after another
|
||||
/// and their numbering doesn't count (otherwise a gap in it shows a placeholder, as in After
|
||||
/// Effects; [`sequence`]).
|
||||
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
|
||||
pub alphabetical: bool,
|
||||
/// Image sequences: Interpret Footage ▸ Start Frame, the frame number at the footage's first
|
||||
/// frame (`None` = the first file's).
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
@@ -1004,7 +1005,7 @@ impl Default for Footage {
|
||||
data: None,
|
||||
layer: None,
|
||||
page: 0,
|
||||
missing_frames: MissingFrames::Skip,
|
||||
alphabetical: false,
|
||||
start_frame: None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user