Skip to main content

Crate aexlo

Crate aexlo 

Source
Expand description

aexlo - After Effects Plugin(.aex) Loader and Emulator

This crate provides functionality to load and execute After Effects plugins (.aex) outside of After Effects, enabling testing, automation, and custom rendering pipelines.

§Example

use aexlo::{Depth8, Host, Layer, ParamValue, Time};

// Fix the host services first (`Host::install(my_app_host)?` to customize).
let host = Host::get();

// Load the plugin and run GLOBAL_SETUP, PARAMS_SETUP and SEQUENCE_SETUP.
// On Windows pass the `.aex` file, on macOS the `.plugin` bundle.
let mut fx = host.load("MyEffect.aex")?;
println!("{}", fx.about()?);

// Feed an input frame and set parameters (index 0 is the input layer).
fx.set_input_layer(Layer::<Depth8>::black(1920, 1080));
fx.set_param(1, ParamValue::Float(0.5))?;
fx.set_time(Time::frame(0, 30));

// Render the way After Effects picks the path: GPU, smart, then legacy.
fx.render_frame()?;
let output: Layer<Depth8> = fx.read_output()?;

§Trust and process model

A plugin is native code, loaded into this process with no sandbox. Loading one is what this crate is for, so Host::load and Loader::load are safe functions, the way spawning a process is: what the plugin’s code does is outside Rust’s guarantees. A buggy plugin can corrupt memory, crash or abort the process that embeds aexlo, so only load plugins you trust.

aexlo’s own callbacks catch their panics and report PF_Err_INTERNAL_STRUCT_DAMAGED to the plugin rather than letting them abort the process, but a crash inside the plugin cannot be caught in-process. When a crashing plugin must not take the application down, run it in a worker process, as the aexlo CLI and its toolkit do for every variant.

§Process-wide state

Some host state belongs to the process, not to a PluginInstance:

  • The AppHost is fixed once per process (Host::install or Host::get) and cannot be swapped afterwards, even between tests.
  • AEGP Persistent Data (preferences) is one in-memory store shared by every plugin and instance, and is never written to disk.
  • AEGP registrations, GPU worlds and allocation tracking live in process-wide registries keyed by instance, so instances coexist.

§Threads

PluginInstance is neither Send nor Sync. After Effects drives an effect instance from one thread at a time, and plugins keep thread-affine state (GPU contexts, Windows HWNDs, thread-local storage), so create, use and drop each instance on the same thread. To render off a UI thread, create the instance on a worker thread and send that thread commands.

ⓘ
fn assert_send<T: Send>() {}
assert_send::<aexlo::PluginInstance>();

Separate instances may run on separate threads at once: aexlo’s process-wide state is behind locks, and its own test suites run instances in parallel. Whether a plugin’s globals tolerate that is up to the plugin (it declares OutFlags2::SUPPORTS_THREADED_RENDERING when they do).

§Features

  • diagnostics - Print every suite call the plugin makes, with its arguments, to stdout

Modules§

sys
The After Effects SDK bindings this crate is built against, with one type per enum constant on every OS.

Structs§

AllocationEvent
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). The plugin got memory from the host or gave it back. Reported whether or not Strict::track_allocations is on.
AppColor
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. A 16-bit-per-channel UI color, as reported by PF_AppGetBgColor / PF_AppGetColor.
AppPixel8
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. An 8-bit straight color, as passed to PF_InfoDrawColor.
AppPixelF
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. A straight float color, as used by the color picker and eyedropper.
AppPoint
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. A point in panel-local or screen coordinates.
CheckoutEvent
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). A smart-render checkout or checkin. Reported whether or not Strict::track_checkouts is on.
CheckoutViolation
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). A smart-render checkout rule broken.
CommandEvent
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). A command sent to the plugin’s entry point.
CustomControlEvent
What a custom-control click or drag asked the host to do next.
CustomControlImage
Straight RGBA image of one custom-UI control after PF_Event_DRAW.
Depth8
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. 8 bits per channel: u8 channels.
Depth16
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. 16 bits per channel: u16 channels in 0..=32768.
Depth32
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. 32 bits per channel: f32 channels, 1.0 being full intensity.
EffectVersion
The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. An effect’s version as PF_VERSION packs it: in the PiPL’s eVER and in PF_OutData::my_version at PF_Cmd_GLOBAL_SETUP.
FontInfo
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. A UI font returned by PF_GetFontStyleSheet. name is truncated to the SDK’s 255-byte limit.
GuardViolation
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). A guard band around a host world was overwritten.
HeadlessAppHost
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. The default AppHost: no UI, every query answers a neutral value and every UI action is a no-op.
Host
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Proof that the process-wide AppHost has been fixed.
InfoLine
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. One line of the Info panel. PF_InfoDrawText/PF_InfoDrawText3 only fill left; PF_InfoDrawText3Plus splits lines 2 and 3 into a left-justified and a right-justified part.
InstanceState
A snapshot of an instance’s host-side state, from PluginInstance::state.
Layer
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. A 2D raster of Pixel<D> stored in row-major order.
Leak
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). A handle or world still alive when its scope ended.
LiveAllocation
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). A host allocation the plugin still holds, as listed by PluginInstance::allocations.
Loader
Options for loading a plugin, applied before its first command runs.
LogObserver
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). An Observer that logs every event at debug level through the log crate: the command trace the diagnostics feature prints, without rebuilding.
MaskPath
Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). A mask path on the effect’s layer.
MaskVertex
Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). One Bezier vertex of a mask, in layer pixel coordinates. The tangents are relative to the vertex, as in AEGP_MaskVertex: the curve leaves the vertex toward (x + tan_out_x, y + tan_out_y) and arrives from (x + tan_in_x, y + tan_in_y). Zero tangents give straight segments.
OutFlags
Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. PF_OutFlags: what an effect declares at PF_Cmd_GLOBAL_SETUP (PluginInstance::out_flags).
OutFlags2
Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. PF_OutFlags2: the second set of flags an effect declares at PF_Cmd_GLOBAL_SETUP (PluginInstance::out_flags2).
OverlayTheme
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Colors and metrics custom UIs should draw overlays with, reported by the “PF Effect Custom UI Overlay Theme Suite”.
ParamUiFlags
Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. PF_ParamUIFlags (PF_PUI_*): how a parameter is shown (PluginInstance::param_ui_flags).
PersonalInfo
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Registered-user strings returned by PF_GetPersonalInfo. Each string is truncated to the SDK’s 63-byte limit.
Pipl
The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. A plugin’s PiPL resource.
PiplProperty
The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. One property of a Pipl: a vendor, a key and its data.
Pixel
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. A single ARGB pixel parameterized over its channel depth.
PixelFormat
Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. Typed flags and pixel formats a plugin declares. A pixel format FourCC (PF_PixelFormat / PrPixelFormat) a plugin registered through the “PF Pixel Format Suite” (PluginInstance::supported_pixel_formats).
PluginInstance
Independent instance of an After Effects Plug-in. It is created by loading a plug-in with Host::load or by driving an in-process entry point with Host::from_entry. Manages its library, entry point, parameters, and execution state. All operations related to the plug-in should be invoked from this.
ProgressId
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Opaque id of a progress dialog opened through AppHost::progress_begin.
Strict
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Which strict-mode instrumentation an instance runs. All off by default, in which case the host’s allocation paths and costs are unchanged.
StrictReport
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). What strict mode found since the last PluginInstance::strict_report.
SuiteCallEvent
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). A host suite function the plugin called.
TextLayer
Text on the effect’s layer, served through the Text Layer Suite (PluginInstance::set_text_layer). Text on the effect’s layer, served through the Text Layer Suite (PluginInstance::set_text_layer). Text on the effect’s layer, served through the Text Layer Suite (PluginInstance::set_text_layer). The text on the effect’s layer, as closed glyph outlines in layer pixels.
TextStyle
Text on the effect’s layer, served through the Text Layer Suite (PluginInstance::set_text_layer). Text on the effect’s layer, served through the Text Layer Suite (PluginInstance::set_text_layer). Text on the effect’s layer, served through the Text Layer Suite (PluginInstance::set_text_layer). How TextLayer::layout sets a string.
Time
A point in comp time: value / scale seconds, one frame lasting step / scale seconds. These are in_data.current_time, time_step and time_scale as the plugin sees them.
TimeDisplayPref
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Time display preferences reported by PF_GetTimeDisplayPref and used by aexlo to format times for PF_FormatTime*.
UnsupportedEvent
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). The plugin asked for something aexlo does not do: what a plugin that runs but renders wrong (or not at all) most often hit. Reported at every ObserveLevel, for calls made on the thread that dispatched the command.

Enums§

AexloError
The main error type for crate’s operations.
AllocationKind
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). What kind of host memory an AllocationEvent is about.
AnyLayer
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. A Layer of any depth, for code that picks the depth at run time.
CheckoutKind
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Which checkout call a CheckoutEvent reports.
CommandPhase
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Whether a CommandEvent marks the start or the end of a command.
LayerError
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. An error building a Layer or copying its pixels.
MaskMode
Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). Layer masks served through the Path Query/Data suites (PluginInstance::set_mask_paths). How a mask combines with the others (PF_MaskMode_*). This represents the PF_MaskMode enum in the After Effects SDK.
ObserveLevel
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). How much an Observer is told.
ParamKind
The declared type of a plugin parameter (PF_ParamType), including the kinds ParamValue does not carry a value for (layers, groups, buttons, arbitrary data, …). See PluginInstance::param_kind.
ParamValue
A parameter value for an After Effects plugin.
PiplValue
The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. A property’s data, decoded by what its key means (see PiplProperty::value).
PixelDepthKind
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. The channel depth of a pixel buffer, as a value (see PixelDepth::KIND).
RenderPath
The command path PluginInstance::render_with renders a frame through.
Stage
The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. The PiPL resource: what After Effects reads from a plugin before loading it. The release stage of an EffectVersion (PF_Stage_*).
TimeDisplayMode
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. How the host displays time (PF_TimeDisplayFormat*).
UnsupportedKind
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). What kind of gap in aexlo an UnsupportedEvent reports.

Constants§

POISON_BYTE
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). The 8 and 16 bpc output poison: every byte of the pixel is 0xCD.
POISON_F32_BITS
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). The 32 bpc output poison: a signalling NaN with a recognizable payload.

Traits§

AppHost
Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Injectable host-application services (App, Adv App/Item/Time, Plugin Helper and Custom UI Overlay Theme suites): UI colors, fonts, language, color picker, progress dialogs, Info panel, time display, tools, … Headless by default. Host-application services queried through the App, Adv App, Adv Item, Adv Time, Plugin Helper and Custom UI Overlay Theme suites, and the PF_ABORT/PF_PROGRESS interact callbacks.
Observer
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Receives events from a PluginInstance. Every method has an empty default, so implement only what you need.
PixelDepth
Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. Safe pixel/layer wrappers, re-exported explicitly so additions to the pixel module don’t silently widen this crate’s public API. A channel depth at the type level: Depth8, Depth16 or Depth32. Pixel and Layer are generic over it.

Functions§

command_name
Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). Observation hooks (PluginInstance::set_observer). The SDK name of a PF_Cmd_* value, without its PF_Cmd_ prefix.
gpu_device_name
The GPU this host renders on, for machine fingerprints. The name of the GPU this host renders on, when it can tell without creating a render context: the default Metal device on macOS. None elsewhere or without a GPU.
is_unwritten
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Whether the pixel at linear index still holds the output poison.
set_main_window⚠
Window plugins should treat as After Effects’ main window (PF_PlatData_MAIN_WND).
unwritten_pixels
Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). Strict mode (PluginInstance::set_strict). How many pixels of a poisoned output the plugin left unwritten.

Type Aliases§

PluginEntryPoint
Entry point ABI for driving an in-process effect via Host::from_entry. ABI of an After Effects effect entry point (EffectMain): the fixed (cmd, in_data, out_data, params, output, extra) signature every effect exports. Handed to Host::from_entry to drive an in-process effect without dlopen.
Result
A specialized Result type for aexlo operations.