Generators, Effects and Shaders with MCP

ASCII Motion has three kinds of procedural features. With version 3, all three can be added, edited and keyframed from MCP.

FeatureWhat it isTools
GeneratorsProcedural layers that draw animated contentapp_add_generator_layer and the other app_…generator… tools
EffectsNon-destructive blocks that change characters or colors over timeadd_effect, update_effect, set_effect_keyframes, bake_effect
ShadersPost-processing on the rendered imageadd_shader, update_shader, set_shader_keyframes

Always start with get_catalog for the family you need (generators, effects or shaders). It returns the exact type names, property paths, defaults and allowed values for the running app. Unknown settings are rejected rather than ignored.

Generators

The generator types are radio-waves, turbulent-noise, particle-physics, rain-drops, digital-rain and animated-text. Each becomes a layer that spans the timeline from startFrame for durationFrames.

  1. get_catalog with family: "generators", or get_generator_catalog, lists each type's settings and property paths.
  2. app_add_generator_layer with a generatorType, optional name, startFrame, durationFrames, settings, and keyframes created in the same undo step.
  3. app_set_generator_property changes one property, with an optional frame for a keyed edit. app_set_generator_keyframes and app_remove_generator_keyframes animate properties over time.
  4. get_generator_state shows the evaluated settings at a frame. app_render_generator_frames previews output without changing the project.
  5. app_randomize_generator_seed and app_reset_generator explore variations. app_update_generator_layer changes timing, enabled or the name.
  6. app_bake_generator_layer converts the layer into ordinary content frames. It's undoable with app_undo, but ask before baking.

Generator layers count toward your plan's layer limit (five layers on the free plan). If a tool reports the limit, remove or bake a layer first.

Effects

Effect blocks are non-destructive and attach to an owner: a layer ({ "layerId": "…" }), a group ({ "groupId": "…" }) or the global effects track ({ "global": true }). The effect types are listed by get_catalog with family: "effects", and include levels, hue-saturation, remap-colors, remap-characters, scatter, wave-warp, wiggle and motion-trails.

  • add_effect with owner, effectType, optional startFrame, durationFrames and settings keyed by catalog property path. It returns a blockId.
  • update_effect changes timing, settings, enabled, owner or stacking index. remove_effect deletes the block.
  • set_effect_keyframes and remove_effect_keyframes animate a property path on the block.
  • bake_effect applies the effect into the cells and removes the block.

Shaders

The five core shaders are glow, blur, pixelate, chromatic aberration and screen distortion.

  • add_shader with a shaderType, optional timing, settings and stacking index. It returns a blockId.
  • update_shader, remove_shader, set_shader_keyframes and remove_shader_keyframes work like their effect counterparts.
  • Shaders change the rendered image, so they appear in the editor and in PNG, JPG, SVG, MP4 and WebM exports, but not in read_cells, which returns characters and colors.

Example

text
Using ascii-motion:
1. Get the generators, effects and shaders catalogs.
2. Add a digital-rain generator layer named "Rain" whose speed doubles from
   frame 0 to frame 48.
3. Add a wave-warp effect to the Title layer.
4. Add a glow shader that fades in over the first 24 frames.
5. Read the composite cells at timeline frame 36, then export frame 36 as PNG.