Layer

Representation of a Photoshop document layer

CreativeDesignGraphicsPhotographyVideo

Properties

Name Type Description
id integer Unique layer identifier within the document
index integer Layer stack index (0 = bottom)
name string Layer name as shown in the Layers panel
type string Layer type
visible boolean Whether the layer is visible
locked boolean Whether the layer is locked
opacity integer Layer opacity from 0 to 255
blendMode string Blend mode of the layer
bounds object Layer bounding box in pixels
children array Child layers for group layers
View JSON Schema on GitHub

JSON Schema

adobe-creative-suite-layer-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Layer",
  "title": "Layer",
  "type": "object",
  "description": "Representation of a Photoshop document layer",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique layer identifier within the document",
      "example": 1920
    },
    "index": {
      "type": "integer",
      "description": "Layer stack index (0 = bottom)",
      "example": 1920
    },
    "name": {
      "type": "string",
      "description": "Layer name as shown in the Layers panel",
      "example": "Example Asset"
    },
    "type": {
      "type": "string",
      "description": "Layer type",
      "enum": [
        "layer",
        "textLayer",
        "adjustmentLayer",
        "fillLayer",
        "smartObject",
        "backgroundLayer",
        "groupLayer"
      ],
      "example": "layer"
    },
    "visible": {
      "type": "boolean",
      "description": "Whether the layer is visible",
      "example": true
    },
    "locked": {
      "type": "boolean",
      "description": "Whether the layer is locked",
      "example": true
    },
    "opacity": {
      "type": "integer",
      "description": "Layer opacity from 0 to 255",
      "minimum": 0,
      "maximum": 255,
      "example": 1920
    },
    "blendMode": {
      "type": "string",
      "description": "Blend mode of the layer",
      "example": "normal"
    },
    "bounds": {
      "type": "object",
      "description": "Layer bounding box in pixels",
      "properties": {
        "top": {
          "type": "integer"
        },
        "left": {
          "type": "integer"
        },
        "bottom": {
          "type": "integer"
        },
        "right": {
          "type": "integer"
        }
      }
    },
    "children": {
      "type": "array",
      "description": "Child layers for group layers",
      "items": {
        "$ref": "#/components/schemas/Layer"
      }
    }
  }
}