Skip to main content
Permanently removes a layer from a composition. Use this when you need to completely eliminate elements from your template based on your data.

Example

{
  "type": "function",
  "name": "nx:layer-remove",
  "params": {
    "composition": "Main Comp",
    "layerIndex": "3"
  }
}

Parameters

composition
string
required
Name/ID of the composition containing the layer
layerIndex
string
required
Index of the layer to remove
I