Add shape modifier
add_shape_modifierAdds a path operator such as trim paths, repeater, offset paths, round corners, or wiggle to a shape group or Contents root in After Effects so vectors can be trimmed, repeated, or distorted.
Instructions
Add a path operator to a shape group (or the Contents root, affecting all paths above it): trim_paths (start,end %, offset deg, trimMultiple), repeater (copies, offset, position, scale, rotation, anchorPoint, startOpacity, endOpacity, composite), offset_paths (amount, lineJoin, miterLimit, copies, copyOffset), round_corners (radius), merge_paths (mode), wiggle_paths (size, detail, points, wigglesPerSecond, correlation, temporalPhase, spatialPhase, randomSeed), zig_zag (size, ridgesPerSegment, points), twist (angle, center), pucker_bloat (amount, -100..100). Only the arguments that apply to the chosen type are used. 'properties' sets any other sub-property by name/matchName.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layer": "<layer>",
"type": "<type>"
},
"name": "add_shape_modifier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | trim_paths end %. | |
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| mode | No | merge_paths mode. | |
| name | No | Name for the modifier item. | |
| size | No | wiggle_paths / zig_zag size px. | |
| type | Yes | Modifier kind. | |
| angle | No | twist angle degrees. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| scale | No | repeater transform scale % per copy. | |
| start | No | trim_paths start %. | |
| amount | No | offset_paths amount px / pucker_bloat amount %. | |
| center | No | twist center. | |
| copies | No | repeater / offset_paths copies. | |
| detail | No | wiggle_paths detail (segments). | |
| offset | No | trim_paths: offset degrees. repeater: offset (copies). | |
| points | No | wiggle_paths / zig_zag point type. | |
| radius | No | round_corners radius px. | |
| lineJoin | No | offset_paths line join. | |
| position | No | repeater transform position offset per copy. | |
| rotation | No | repeater transform rotation per copy (degrees). | |
| composite | No | repeater composite. | |
| groupPath | No | Shape group path inside the layer's Contents: '/'-separated Vector Group names (or 1-based indexes), e.g. 'Logo' or 'Logo/Circle'. Omit or '' for the Contents root. A leading 'Contents/' is accepted. Use list_shape_contents to see names. | |
| copyOffset | No | offset_paths copy offset. | |
| endOpacity | No | repeater end opacity %. | |
| miterLimit | No | offset_paths miter limit. | |
| properties | No | Extra sub-properties {name or matchName: value}. | |
| randomSeed | No | wiggle_paths random seed. | |
| anchorPoint | No | repeater transform anchor. | |
| correlation | No | wiggle_paths correlation %. | |
| spatialPhase | No | wiggle_paths spatial phase. | |
| startOpacity | No | repeater start opacity %. | |
| trimMultiple | No | trim_paths: how multiple shapes are trimmed. | |
| temporalPhase | No | wiggle_paths temporal phase. | |
| ridgesPerSegment | No | zig_zag ridges per segment. | |
| wigglesPerSecond | No | wiggle_paths wiggles/second. |