.. _Layers: ================================================ Layers ================================================ Description ----------- The collection of layer objects, including art layer and layer set objects, in the document. Properties ^^^^^^^^^^ +-------------------------------------------+---------------------------------------+ | :ref:`length` readonly | Number of elements in the collection. | +-------------------------------------------+---------------------------------------+ | :ref:`parent` readonly | The object's container. | +-------------------------------------------+---------------------------------------+ | :ref:`typename` readonly | The class name of the object. | +-------------------------------------------+---------------------------------------+ Methods ^^^^^^^ +---------------------------------------------+-----------------------------------------------------------------+ | :ref:`[]` readonly | Get an element in the collection with the provided index. | +---------------------------------------------+-----------------------------------------------------------------+ | :ref:`getByName` readonly | Get the first element in the collection with the provided name. | +---------------------------------------------+-----------------------------------------------------------------+ | :ref:`removeAll` readonly | Deletes all elements. | +---------------------------------------------+-----------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 Layers/parent.rst Layers/typename.rst Layers/length.rst Layers/removeAll.rst Layers/getByName.rst Layers/[].rst