Skip to main content
Glama

mcp-after-effects

by Dakkshin

setLayerExpression

Define or remove JavaScript expressions for specific layer properties in After Effects compositions, enabling dynamic control over properties like Position, Scale, Rotation, and Opacity.

Instructions

Set or remove an expression for a specific layer property.

Input Schema

NameRequiredDescriptionDefault
compIndexYes1-based index of the target composition in the project panel.
expressionStringYesThe JavaScript expression string. Provide an empty string ("") to remove the expression.
layerIndexYes1-based index of the target layer within the composition.
propertyNameYesName of the property to apply the expression to (e.g., 'Position', 'Scale', 'Rotation', 'Opacity').

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "compIndex": { "description": "1-based index of the target composition in the project panel.", "exclusiveMinimum": 0, "type": "integer" }, "expressionString": { "description": "The JavaScript expression string. Provide an empty string (\"\") to remove the expression.", "type": "string" }, "layerIndex": { "description": "1-based index of the target layer within the composition.", "exclusiveMinimum": 0, "type": "integer" }, "propertyName": { "description": "Name of the property to apply the expression to (e.g., 'Position', 'Scale', 'Rotation', 'Opacity').", "type": "string" } }, "required": [ "compIndex", "layerIndex", "propertyName", "expressionString" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dakkshin/after-effects-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server