psd_tools.api.effects

Effects module.

class psd_tools.api.effects.Effects(layer)[source]

List-like effects.

property enabled

Whether if all the effects are enabled.

Return type:

bool

find(name)[source]

Iterate effect items by name.

property scale

Scale value.

DropShadow

class psd_tools.api.effects.DropShadow(value, image_resources)[source]
property angle

Angle value.

property anti_aliased

Angi-aliased.

property blend_mode

Effect blending mode.

property choke

Choke level.

property color

Color.

property contour

Contour configuration.

property distance

Distance.

property enabled

Whether if the effect is enabled.

property layer_knocks_out

Layers are knocking out.

property noise

Noise level.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property shown

Whether if the effect is shown in dialog.

property size

Size in pixels.

property use_global_light

Using global light.

InnerShadow

class psd_tools.api.effects.InnerShadow(value, image_resources)[source]
property angle

Angle value.

property anti_aliased

Angi-aliased.

property blend_mode

Effect blending mode.

property choke

Choke level.

property color

Color.

property contour

Contour configuration.

property distance

Distance.

property enabled

Whether if the effect is enabled.

property noise

Noise level.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property shown

Whether if the effect is shown in dialog.

property size

Size in pixels.

property use_global_light

Using global light.

OuterGlow

class psd_tools.api.effects.OuterGlow(value, image_resources)[source]
property angle

Angle value.

property anti_aliased

Angi-aliased.

property blend_mode

Effect blending mode.

property choke

Choke level.

property color

Color.

property contour

Contour configuration.

property dithered

Dither flag.

property enabled

Whether if the effect is enabled.

property glow_type

Glow type.

property gradient

Gradient configuration.

property noise

Noise level.

property offset

Offset value.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property quality_jitter

Quality jitter

property quality_range

Quality range.

property reversed

Reverse flag.

property shown

Whether if the effect is shown in dialog.

property size

Size in pixels.

property type

Gradient type, one of linear, radial, angle, reflected, or diamond.

InnerGlow

class psd_tools.api.effects.InnerGlow(value, image_resources)[source]
property angle

Angle value.

property anti_aliased

Angi-aliased.

property blend_mode

Effect blending mode.

property choke

Choke level.

property color

Color.

property contour

Contour configuration.

property dithered

Dither flag.

property enabled

Whether if the effect is enabled.

property glow_source

Elements source.

property glow_type

Glow type.

property gradient

Gradient configuration.

property noise

Noise level.

property offset

Offset value.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property quality_jitter

Quality jitter

property quality_range

Quality range.

property reversed

Reverse flag.

property shown

Whether if the effect is shown in dialog.

property size

Size in pixels.

property type

Gradient type, one of linear, radial, angle, reflected, or diamond.

ColorOverlay

class psd_tools.api.effects.ColorOverlay(value, image_resources)[source]
property blend_mode

Effect blending mode.

property color

Color.

property enabled

Whether if the effect is enabled.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property shown

Whether if the effect is shown in dialog.

GradientOverlay

class psd_tools.api.effects.GradientOverlay(value, image_resources)[source]
property aligned

Aligned.

property angle

Angle value.

property blend_mode

Effect blending mode.

property dithered

Dither flag.

property enabled

Whether if the effect is enabled.

property gradient

Gradient configuration.

property offset

Offset value.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property reversed

Reverse flag.

property scale

Scale value.

property shown

Whether if the effect is shown in dialog.

property type

Gradient type, one of linear, radial, angle, reflected, or diamond.

PatternOverlay

class psd_tools.api.effects.PatternOverlay(value, image_resources)[source]
property aligned

Aligned.

property angle

Angle value.

property blend_mode

Effect blending mode.

property enabled

Whether if the effect is enabled.

property linked

Linked.

property opacity

Layer effect opacity in percentage.

property pattern

Pattern config.

property phase

Phase value in Point.

property present

Whether if the effect is present in Photoshop UI.

property scale

Scale value.

property shown

Whether if the effect is shown in dialog.

Stroke

class psd_tools.api.effects.Stroke(value, image_resources)[source]
property angle

Angle value.

property blend_mode

Effect blending mode.

property color

Color.

property dithered

Dither flag.

property enabled

Whether if the effect is enabled.

property fill_type

Fill type, SolidColor, Gradient, or Pattern.

property gradient

Gradient configuration.

property linked

Linked.

property offset

Offset value.

property opacity

Layer effect opacity in percentage.

property overprint

Overprint flag.

property pattern

Pattern config.

property phase

Phase value in Point.

property position

Position of the stroke, InsetFrame, OutsetFrame, or CenteredFrame.

property present

Whether if the effect is present in Photoshop UI.

property reversed

Reverse flag.

property shown

Whether if the effect is shown in dialog.

property size

Size value.

property type

Gradient type, one of linear, radial, angle, reflected, or diamond.

BevelEmboss

class psd_tools.api.effects.BevelEmboss(value, image_resources)[source]
property altitude

Altitude value.

property angle

Angle value.

property anti_aliased

Anti-aliased.

property bevel_style

Bevel style, one of OuterBevel, InnerBevel, Emboss, PillowEmboss, or StrokeEmboss.

property bevel_type

Bevel type, one of SoftMatte, HardLight, SoftLight.

property contour

Contour configuration.

property depth

Depth value.

property direction

Direction, either StampIn or StampOut.

property enabled

Whether if the effect is enabled.

property highlight_color

Highlight color value.

property highlight_mode

Highlight blending mode.

property highlight_opacity

Highlight opacity value.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property shadow_color

Shadow color value.

property shadow_mode

Shadow blending mode.

property shadow_opacity

Shadow opacity value.

property shown

Whether if the effect is shown in dialog.

property size

Size value in pixel.

property soften

Soften value.

property use_global_light

Using global light.

property use_shape

Using shape.

property use_texture

Using texture.

Satin

class psd_tools.api.effects.Satin(value, image_resources)[source]

Satin effect

property angle

Angle value.

property anti_aliased

Anti-aliased.

property blend_mode

Effect blending mode.

property color

Color.

property contour

Contour configuration.

property distance

Distance value.

property enabled

Whether if the effect is enabled.

property inverted

Inverted.

property opacity

Layer effect opacity in percentage.

property present

Whether if the effect is present in Photoshop UI.

property shown

Whether if the effect is shown in dialog.

property size

Size value in pixel.