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.
| Feature | What it is | Tools |
|---|---|---|
| Generators | Procedural layers that draw animated content | app_add_generator_layer and the other app_…generator… tools |
| Effects | Non-destructive blocks that change characters or colors over time | add_effect, update_effect, set_effect_keyframes, bake_effect |
| Shaders | Post-processing on the rendered image | add_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.
get_catalogwithfamily: "generators", orget_generator_catalog, lists each type's settings and property paths.app_add_generator_layerwith ageneratorType, optionalname,startFrame,durationFrames,settings, andkeyframescreated in the same undo step.app_set_generator_propertychanges one property, with an optionalframefor a keyed edit.app_set_generator_keyframesandapp_remove_generator_keyframesanimate properties over time.get_generator_stateshows the evaluated settings at a frame.app_render_generator_framespreviews output without changing the project.app_randomize_generator_seedandapp_reset_generatorexplore variations.app_update_generator_layerchanges timing,enabledor the name.app_bake_generator_layerconverts the layer into ordinary content frames. It's undoable withapp_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_effectwithowner,effectType, optionalstartFrame,durationFramesandsettingskeyed by catalog property path. It returns ablockId.update_effectchanges timing, settings,enabled, owner or stackingindex.remove_effectdeletes the block.set_effect_keyframesandremove_effect_keyframesanimate a property path on the block.bake_effectapplies the effect into the cells and removes the block.
Shaders
The five core shaders are glow, blur, pixelate, chromatic aberration and screen distortion.
add_shaderwith ashaderType, optional timing,settingsand stackingindex. It returns ablockId.update_shader,remove_shader,set_shader_keyframesandremove_shader_keyframeswork 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
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.Related
- Generators, Effects and Shaders in the app
- Tool reference: Generators and Effects