Set 3D material options
set_material_optionsSet 3D material options on one or more After Effects layers—casts/accepts shadows, lights, reflection, transparency, and metal—and auto-convert 2D layers to 3D.
Instructions
Set Material Options on one or more layers: casts shadows (off/on/only), accepts shadows/lights, light transmission, ambient, diffuse, specular intensity/shininess, metal, and the Advanced 3D / Cinema 4D reflection and transparency options. Layers that are not 3D are made 3D first (make3D=false to skip them). Values are percentages unless noted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_material_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| time | No | Set the values as keyframes at this time (seconds, '12f' or timecode). Omit = static value (or a key at the current time when the property is already animated). | |
| metal | No | Metal %. | |
| layers | No | Layers: array of layer refs, or 'selected' (default) or 'all'. | |
| make3D | No | Turn on the 3D switch for 2D layers (default true). | |
| ambient | No | Ambient %. | |
| diffuse | No | Diffuse %. | |
| options | No | Any other option by display name or matchName, e.g. {'Iris Rotation': 30} or {'ADBE Light Intensity': 80}. | |
| shininess | No | Specular shininess %. | |
| shadowColor | No | Shadow color (Advanced 3D). | |
| castsShadows | No | Casts Shadows: 'off', 'on' or 'only' (only the shadow renders). | |
| transparency | No | Transparency %. | |
| acceptsLights | No | Accepts Lights. | |
| acceptsShadows | No | Accepts Shadows: on/off ('only' with Advanced 3D). | |
| indexOfRefraction | No | Index of refraction (1 = air). | |
| lightTransmission | No | Light transmission %. | |
| reflectionRolloff | No | Reflection rolloff %. | |
| specularIntensity | No | Specular intensity %. | |
| reflectionIntensity | No | Reflection intensity %. | |
| reflectionSharpness | No | Reflection sharpness %. | |
| transparencyRolloff | No | Transparency rolloff %. | |
| appearsInReflections | No | Appears in reflections. |