setLayerMaterialOptions
Configure 3D material options and shaders on After Effects layers to control shadows, lights, ambient, diffuse, specular, shininess, metal, and roughness for realistic rendering.
Instructions
Configure 3D material options and shaders on a 3D layer (shadows, lights, ambient, diffuse, specular, shininess, metal, roughness)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metal | No | Metal reflection percentage (0-100) | |
| ambient | No | Ambient reflection percentage (0-100) | |
| diffuse | No | Diffuse reflection percentage (0-100) | |
| compName | No | Composition name | |
| layerName | No | Layer name | |
| roughness | No | Surface roughness percentage in Advanced 3D (0-100) | |
| layerIndex | No | Layer index (1-based) | |
| castsShadows | No | Casts shadows ("off", "on", "only") | |
| transparency | No | Material transparency percentage (0-100) | |
| acceptsLights | No | Accepts lights ("off", "on") | |
| acceptsShadows | No | Accepts shadows ("off", "on", "only") | |
| customProperties | No | Any custom material properties | |
| lightTransmission | No | Light transmission percentage (0-100) | |
| specularIntensity | No | Specular intensity percentage (0-100) | |
| specularShininess | No | Specular shininess percentage (0-100) | |
| reflectionCoefficient | No | Reflection coefficient percentage (0-100) |