M13.26: Premiere Pro interop commands (file.importTimeline, file.exportTimeline with ProRes 4444 pre-renders), File menu entries, export dialog, docs and pixel round-trip tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
fe80862eeb
commit
955422819c
@@ -108,13 +108,14 @@ enum Plan {
|
||||
}
|
||||
|
||||
/// Why a layer can't be a plain clip (None = it can), regardless of the mode.
|
||||
fn unsupported(project: &Project, comp: &Comp, l: &Layer) -> Option<String> {
|
||||
fn unsupported(project: &Project, comp: &Comp, l: &Layer, format: TimelineFormat) -> Option<String> {
|
||||
let kind = match &l.source {
|
||||
LayerSource::Text => Some("text layer"),
|
||||
LayerSource::Shape => Some("shape layer"),
|
||||
LayerSource::Model { .. } | LayerSource::Primitive { .. } => Some("3D model layer"),
|
||||
LayerSource::Solid { item } => match project.item(*item).map(|i| &i.kind) {
|
||||
Some(ItemKind::Solid(s)) if s.width != comp.width || s.height != comp.height => Some("solid smaller or larger than the frame"),
|
||||
Some(ItemKind::Solid(_)) if format != TimelineFormat::Fcp7Xml => Some("solid (the format has no colour mattes)"),
|
||||
_ => None,
|
||||
},
|
||||
_ => None,
|
||||
@@ -184,7 +185,7 @@ fn plan(project: &Project, comp: &Comp, l: &Layer, opts: &ExportOptions) -> Plan
|
||||
if l.switches.adjustment {
|
||||
return Plan::Skip("adjustment layer (its effects apply to the layers below)".into());
|
||||
}
|
||||
let why = unsupported(project, comp, l);
|
||||
let why = unsupported(project, comp, l, opts.format);
|
||||
match opts.prerender {
|
||||
PrerenderMode::All => Plan::Render("pre-render all layers".into()),
|
||||
PrerenderMode::Unsupported => match (&l.source, why) {
|
||||
@@ -443,7 +444,7 @@ impl Exporter<'_> {
|
||||
},
|
||||
Plan::Native | Plan::Nest => {
|
||||
if self.opts.prerender == PrerenderMode::None
|
||||
&& let Some(w) = unsupported(self.p, &comp, l)
|
||||
&& let Some(w) = unsupported(self.p, &comp, l, self.opts.format)
|
||||
{
|
||||
self.warn(format!("layer \"{}\": {w} not exported", l.name));
|
||||
}
|
||||
|
||||
@@ -36,10 +36,13 @@ mod tests;
|
||||
pub use export::{ExportOptions, ExportOutput, PrecompMode, PrerenderMode, Prerendered, export, plan_prerender, prerender_reason};
|
||||
pub use import::{ImportOptions, ImportResult, import};
|
||||
|
||||
pub use filmcraft_geom as fc_geom;
|
||||
/// FilmCraft's interchange crate (format readers/writers) and timeline model, re-exported so
|
||||
/// tests and tools can build documents in code.
|
||||
pub use filmcraft_interchange as fc;
|
||||
pub use filmcraft_media as fc_media;
|
||||
pub use filmcraft_project as fc_project;
|
||||
pub use filmcraft_time as fc_time;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user