Controls how long a layer appears in your composition. This function automatically handles different types of layers to set their duration.
Example
{
"type": "function",
"name": "nx:layer-duration-set",
"params": {
"layerName": "Video Layer",
"value": 5.5
}
}
Parameters
Name of the layer to modify
Duration value in seconds for how long the layer should be visible.
Notes
- Works with all layer types including nested compositions
- The layer’s start time remains unchanged
- Duration is measured in seconds