Adobe Illustrator · JSON Structure

Adobe Illustrator Scripting Layer Structure

Layer from Adobe Illustrator API

Type: object Properties: 16
Creative CloudDesignIllustratorVector Graphics

Layer is a JSON Structure definition published by Adobe Illustrator, describing 16 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id name visible locked printable preview dimPlacedImages color opacity blendingMode isClippingMask sliced hasSelectedArtwork pathItemCount textFrameCount sublayerCount

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-illustrator/refs/heads/main/json-structure/adobe-illustrator-scripting-layer-structure.json",
  "name": "Layer",
  "description": "Layer from Adobe Illustrator API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the layer.",
      "example": "example_value"
    },
    "name": {
      "type": "string",
      "description": "Name of the layer.",
      "examples": [
        "Layer 1"
      ],
      "example": "Example Artboard"
    },
    "visible": {
      "type": "boolean",
      "description": "Whether the layer is visible.",
      "example": true
    },
    "locked": {
      "type": "boolean",
      "description": "Whether the layer is locked.",
      "example": true
    },
    "printable": {
      "type": "boolean",
      "description": "Whether the layer is printable.",
      "example": true
    },
    "preview": {
      "type": "boolean",
      "description": "Whether the layer is in preview mode.",
      "example": true
    },
    "dimPlacedImages": {
      "type": "boolean",
      "description": "Whether to dim placed images.",
      "example": true
    },
    "color": {
      "type": "string",
      "description": "The layer highlight color.",
      "enum": [
        "Red",
        "Orange",
        "Yellow",
        "Green",
        "Blue",
        "Violet",
        "Gray",
        "LightBlue",
        "LightGreen",
        "LightRed"
      ],
      "example": "Red"
    },
    "opacity": {
      "type": "double",
      "description": "Layer opacity as a percentage (0-100).",
      "minimum": 0,
      "maximum": 100,
      "example": 72.0
    },
    "blendingMode": {
      "type": "string",
      "description": "Blending mode for the layer.",
      "enum": [
        "Normal",
        "Multiply",
        "Screen",
        "Overlay",
        "Darken",
        "Lighten",
        "ColorDodge",
        "ColorBurn",
        "HardLight",
        "SoftLight",
        "Difference",
        "Exclusion",
        "Hue",
        "Saturation",
        "Color",
        "Luminosity"
      ],
      "example": "Normal"
    },
    "isClippingMask": {
      "type": "boolean",
      "description": "Whether the layer is a clipping mask.",
      "example": true
    },
    "sliced": {
      "type": "boolean",
      "description": "Whether the layer is sliced.",
      "example": true
    },
    "hasSelectedArtwork": {
      "type": "boolean",
      "description": "Whether the layer contains selected artwork.",
      "example": true
    },
    "pathItemCount": {
      "type": "int32",
      "description": "Number of path items in the layer.",
      "example": 1024
    },
    "textFrameCount": {
      "type": "int32",
      "description": "Number of text frames in the layer.",
      "example": 1024
    },
    "sublayerCount": {
      "type": "int32",
      "description": "Number of sublayers.",
      "example": 1024
    }
  }
}