---
title: "addLayer"
canonical: "https://help.vicon.com/space/ShogunPost120/1043038326/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

|  |
| --- |
| `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/ShogunPost120/pages/1043039514)
- [copyClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038863)
- [cropClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038608)
- [deleteClipData](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039647)
- [flatten](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038936)
- [getActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039548)
- [getClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039523)
- [moveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043040386)
- [offsetClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038495)
- [removeFromClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038707)
- [removeLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039741)
- [resetClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038339)
- [selectClipObjects](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039495)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038555)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038555)
- [setActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038634)
- [tileClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038447)