Skip to main content
Controls how long a layer appears in your composition. This function automatically handles different types of layers to set their duration.

Example

Parameters

string
required
Name of the layer to modify
number
required
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