Output Module
OutputModule
¶
OutputModule(
file_template: str,
frame_rate: float,
include_source_xmp: bool,
output_color_space: str | None,
preserve_rgb: bool,
name: str,
parent: RenderQueueItem,
post_render_action: PostRenderAction,
post_render_target_comp: CompItem,
settings: OutputModuleSettings,
templates: list[str],
_project_color_depth: int,
_project_name: str,
_video_codec: str | None = None,
)
An OutputModule object of a RenderQueueItem generates a single file or
sequence via a render operation, and contains attributes and methods
relating to the file to be rendered.
See: https://ae-scripting.docsforadobe.dev/renderqueue/outputmodule/
Attributes¶
file
¶
file: str
The full path for the file this output module is set to render.
Resolves template variables like [compName], [width], [frameRate],
etc. to their actual values based on the composition and render settings.
file_template
¶
file_template: str
The raw file path template, may contain [compName] and [fileExtension]
variables.
include_source_xmp
¶
include_source_xmp: bool
When True, writes all source footage XMP metadata to the output file.
parent
¶
parent: RenderQueueItem = field(repr=False)
Reference to parent RenderQueueItem, used for resolving file paths and accessing comp and render settings.
post_render_action
¶
post_render_action: PostRenderAction
An action to perform when rendering is complete. Only used when
post_render_action is IMPORT_AND_REPLACE or SET_PROXY. When 0 or
None, uses the render queue item's comp.
post_render_target_comp
¶
The CompItem to use for post-render actions that require a comp. Only
used when post_render_action is IMPORT_AND_REPLACE or SET_PROXY.
preserve_rgb
¶
preserve_rgb: bool
When True, disable color management conversions for this output module.
Note
Not exposed in ExtendScript.
settings
¶
settings: OutputModuleSettings
OutputModuleSettings
dict with ExtendScript-compatible keys. Includes "Video Output",
"Audio Bit Depth", "Audio Channels", "Color", etc. Matches the
format from OutputModule.getSettings(GetSettingsFormat.NUMBER).
templates
¶
The names of all output-module templates available in the local installation of After Effects.
Functions¶
get_setting
¶
Return a single output module setting in the specified format.
Parameters:
-
(key¶str) –The setting key (e.g.
"Video Output","Audio Bit Depth"). -
(format¶GetSettingsFormat, default:STRING) –The output format.
get_settings
¶
Return output module settings in the specified format.
Parameters:
-
(format¶GetSettingsFormat, default:STRING) –The output format.
GetSettingsFormat.NUMBERreturns numeric values (enums unwrapped to ints).GetSettingsFormat.STRINGreturns all values as strings