---
title: "addLayer"
canonical: "https://help.vicon.com/space/ShogunPost122/1416135359/addLayer"
format: markdown
---
# Description

Create a new layer in the active clip. An error is generated if there is no clip in the scene.

## Functional area

NLE

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `addLayer "layerName"` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `layerName` | string | yes | The name of the layer to add |

### Flags

None

## Return value

void

## Examples

```plaintext
// Print the name of the active clip
string $clip = `getActiveClip`;
print $clip;
 // Add new layer
string $name = "new layer";
addLayer $name; 
// Print all layers
string $layers [];
$layers = `getLayers`;
print $layers;
```

# Additional info

## Related commands

- [addToClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416134714)
- [copyClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135734)
- [cropClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416138050)
- [deleteClipData](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416134819)
- [flatten](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135841)
- [getActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136000)
- [getClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135972)
- [moveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135217)
- [offsetClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416137317)
- [removeFromClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135453)
- [removeLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136017)
- [resetClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416134707)
- [selectClipObjects](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136585)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135576)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135576)
- [setActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135080)
- [tileClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135928)