M4.9: Preserve frame rate when nested or in render queue, Preserve resolution when nested
Composition Settings ▸ Advanced has both options (they were missing from the model, the
renderer and the dialog):
- Preserve frame rate: nested in another comp, the comp shows only its own frames
(`EvalCtx::nested_time` floors the precomp layer's source time to the nested comp's frame
rate; used for the nested frame, its proxy, aux channels, collapsed transformations and the
viewer's internal wireframes), and the Render Queue renders it at its own rate whatever the
Frame Rate override (`RenderSettings::rate`).
- Preserve resolution: nested in a comp rendered at Half / Third / Quarter, it renders at full
size and the buffer's scale places it.
- `comp.settings {preserveFrameRate, preserveResolution}`, `comp.info` reports them, scripts
read and set `CompItem.preserveNestedFrameRate` / `preserveNestedResolution`, Pre-compose
copies them, and the dialog registers `dialog.comp.preserveFrameRate` /
`dialog.comp.preserveResolution`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4e98b8c4bd
commit
0fe6db00e8
@@ -308,6 +308,14 @@ pub struct Comp {
|
||||
pub enable_frame_blending: bool,
|
||||
#[serde(default)]
|
||||
pub draft_3d: bool,
|
||||
/// Composition Settings ▸ Advanced ▸ Preserve frame rate when nested or in render queue:
|
||||
/// nested in another comp, or rendered at another rate, it shows only its own frames.
|
||||
#[serde(default)]
|
||||
pub preserve_frame_rate: bool,
|
||||
/// Composition Settings ▸ Advanced ▸ Preserve resolution when nested: nested in a comp
|
||||
/// previewed at a lower resolution, it still renders at full size.
|
||||
#[serde(default)]
|
||||
pub preserve_resolution: bool,
|
||||
#[serde(default)]
|
||||
pub poster_time: Tick,
|
||||
/// Global Light for layer styles (Layer ▸ Layer Styles ▸ Blending Options).
|
||||
@@ -358,6 +366,8 @@ impl Comp {
|
||||
enable_motion_blur: true,
|
||||
enable_frame_blending: true,
|
||||
draft_3d: false,
|
||||
preserve_frame_rate: false,
|
||||
preserve_resolution: false,
|
||||
poster_time: Tick::ZERO,
|
||||
guides: vec![],
|
||||
global_light: styles::GlobalLight::default(),
|
||||
@@ -377,6 +387,8 @@ impl Comp {
|
||||
renderer: self.renderer,
|
||||
enable_motion_blur: self.enable_motion_blur,
|
||||
enable_frame_blending: self.enable_frame_blending,
|
||||
preserve_frame_rate: self.preserve_frame_rate,
|
||||
preserve_resolution: self.preserve_resolution,
|
||||
..Comp::new(width, height, self.frame_rate, duration)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -418,8 +418,10 @@ impl RenderSettings {
|
||||
let b = b.clamp(a, comp.duration);
|
||||
(a, b)
|
||||
}
|
||||
/// The output frame rate: the Frame Rate override, unless the comp preserves its frame rate
|
||||
/// (Composition Settings ▸ Preserve frame rate when nested or in render queue).
|
||||
pub fn rate(&self, comp: &Comp) -> FrameRate {
|
||||
self.frame_rate.unwrap_or(comp.frame_rate)
|
||||
if comp.preserve_frame_rate { comp.frame_rate } else { self.frame_rate.unwrap_or(comp.frame_rate) }
|
||||
}
|
||||
/// First output-rate frame starting at or after `t`.
|
||||
fn ceil_frame(r: FrameRate, t: Tick) -> i64 {
|
||||
|
||||
Reference in New Issue
Block a user