Sample property over time
sample_propertySample a layer property's values across specified times or a sampled time range to verify animation keyframes and expression output.
Instructions
Read a property's value at several times (after expressions unless preExpression=true) to check an animation. Give explicit 'times', or startTime/endTime/samples (evenly spaced, default whole comp, 10 samples). Max 500.
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>",
"property": "<property>"
},
"name": "sample_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| times | No | Exact times to sample. | |
| endTime | No | Range end (default comp duration). | |
| samples | No | Number of evenly spaced samples (default 10). | |
| property | Yes | Property path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'. | |
| startTime | No | Range start (default 0). | |
| preExpression | No | Read values before the expression is applied. |