Aphelion

Aphelion SDK

Edit on GitHub

API reference

Import from aphelion_sdk only. Symbols are loaded lazily on first access.

Version: aphelion_sdk.__version__ (distribution name aphelion-sdk).

Plugins

SymbolPurpose
PluginMedia-agnostic metadata base. Do not subclass directly.
VideoEffectPluginUnary video frame effect (plugin_kind = "video").
register_pluginClass decorator for in-process discovery.
get_registered_pluginsClasses registered via register_plugin.
clear_registered_pluginsDrop in-process registrations (editor reload).
discover_installed_pluginsLoad aphelion.plugins entry points.

VideoEffectPlugin methods you implement: setup_effect_properties, process_frame. Optional: build_property_panel, build_property_qt_widget.

Types

SymbolPurpose
Framenumpy.ndarray, shape (H, W, 3), float32, [0, 1]. No alpha.
ColorRgbtuple[int, int, int], each channel 0–255.

Properties

Pass builder results to self.set_property(key, ...). Common keyword args: label, description, group (default General), priority (lower first, default 100).

BuilderControl
slider_property(value, min, max, *, label, suffix="")Integer slider
number_property(value, min, max, *, label, suffix="")Float spin box
toggle_property(value, *, label)Checkbox
text_property(value, *, label)Line edit
color_property(value, *, label)RGB swatch
choice_property(enum_value, *, label)Enum dropdown
custom_property(value, *, widget_id, label)Opens a DialogWidget on this plugin
PluginPropertyOpaque handle type (do not construct)

Widgets

SymbolPurpose
PluginWidgetBase UI surface. Not registered alone.
PanelWidgetDockable panel.
DialogWidgetPopup (on_accept / on_reject).
WidgetHostFactory, properties, open_dialog, qt_parent.
WidgetViewPrimitive controls + embed_native.
WidgetContextBinding to plugin/node/property.
coerce_qt_parentParent a QWidget to a host object.
is_qt_widgetType check for embedded widgets.

Host helpers (optional)

aphelion_sdk.host is for tooling, not effect code:

SymbolPurpose
locate_editor / discover_editorsFind an installed Aphelion Editor
install_plugins_into_editorCopy .py files into userdata/plugins
EditorInstall / EditorHostErrorResult and error types

CLI

aphelion-sdk --version
aphelion-sdk build [source] [-o DIR] [-n NAME] [--package-version VER]
python -m aphelion_sdk build ...

See packaging.