Set audio levels / fades
set_audio_levelsAdjust a layer's audio levels in dB with static values or keyframes, create fade-ins/outs, and enable or disable audio; optionally clear existing level keys first.
Instructions
Set a layer's Audio Levels in dB (0 = unchanged, negative = quieter), statically, at 'time', or as a list of keys; fadeIn/fadeOut (seconds) add keyframes from/to silentDb (default -48 dB) at the layer's in/out point. Can also switch the audio on/off. clearKeys=true removes existing level keys first.
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>"
},
"name": "set_audio_levels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| keys | No | Keyframes [{time, level}] in dB. | |
| 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). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| level | No | Level in dB (number for both channels or [left, right]). | |
| fadeIn | No | Fade-in length in seconds from the layer's in point. | |
| fadeOut | No | Fade-out length in seconds ending at the layer's out point. | |
| silentDb | No | Level used as silence for fades (default -48). | |
| clearKeys | No | Delete existing Audio Levels keyframes first. | |
| audioEnabled | No | Turn the layer's audio switch on/off. |