Skip to main content
Controls layer visibility to show or hide elements in your composition. Perfect for creating dynamic content where elements appear or disappear based on your data.

Example

{
  "type": "function",
  "name": "nx:layer-state-set",
  "params": {
    "layerName": "Background",
    "visible": true
  }
}

Parameters

layerName
string
required
Name of the layer to modify
visible
boolean
required
Whether the layer should be visible (enabled)
I