Skip to content

active_layer

ActiveLayer

Bases: Photoshop

The selected layer.

Source code in photoshop/api/_active_layer.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class ActiveLayer(Photoshop):
    """The selected layer."""

    def __int__(self):
        super().__init__()

    @property
    def name(self) -> str:
        """The name of the layer."""
        return self.active_layer.Typename

    def add(self):
        """Adds an element."""
        self.app.ActiveDocument.ArtLayers.Add()

name: str property

The name of the layer.

add()

Adds an element.

Source code in photoshop/api/_active_layer.py
16
17
18
def add(self):
    """Adds an element."""
    self.app.ActiveDocument.ArtLayers.Add()

Last update: 2024-11-17
Created: 2024-11-17