ae_applyGradient
Applies a Gradient Ramp with exact hex colors to an After Effects layer, defined by color stops, linear or radial type, and angle. Set direction and scatter to control the gradient.
Instructions
After Effects: apply a reliable gradient (Gradient Ramp) with real colors. stops [{color:hex}, ...] (first + last used), type linear|radial, angleDeg (linear direction).
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>",
"stops": "<stops>"
},
"name": "ae_applyGradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| blend | No | ramp scatter 0-.. | |
| layer | Yes | Layer name or 1-based index. | |
| stops | Yes | ||
| angleDeg | No | ||
| compositionName | No | Comp name; omit to use the active comp. |