UXP Toolkit
    Preparing search index...

    Represents a single layer comp in the document.

    // Access layer comps
    const doc = app.activeDocument;
    const layerComp = doc.layerComps[0];
    console.log(`Layer comp: ${layerComp.name}`);
    // Create and apply a layer comp
    const doc = app.activeDocument;
    const comp = await doc.layerComps.add("My Design", "A great design", true, true, true);
    await comp.apply();

    24.0

    Index

    Accessors

    Methods