> ## Documentation Index
> Fetch the complete documentation index at: https://www.nexrender.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# nx:comp-duration-set

> Sets the work area duration of a composition

Controls the duration of a composition's work area for rendering. This allows you to specify exactly how long your rendered output should be.

## Example

```json theme={null}
{
  "type": "function",
  "name": "nx:comp-duration-set",
  "params": {
    "composition": "Main Comp",
    "value": 10
  }
}
```

## Parameters

<ParamField path="composition" type="string" required>
  Name/ID of the composition to modify
</ParamField>

<ParamField path="value" type="number" required>
  Duration value in seconds for the composition's work area
</ParamField>
