Home/ Reference/ Effects

shape.Effect / shape.Effects

Effect is the first effect; Effects is the whole collection. Count Effects to find out how many layers of effects an object is carrying.

Signature

shape.Effect / shape.Effects

Notes

Effect is the first effect; Effects is the whole collection. Count Effects to find out how many layers of effects an object is carrying.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

try:
    n = shape.Effects.Count
    print("This shape carries", n, " effect(s)")

    for i in range(1, n + 1):
        eff = shape.Effects.Item(i)
        print("#", i, " effect(s), type codes: ", eff.Type)
except Exception as e:
    print("Reading effects failed; the shape may have none: ", e)

About this section: Effects

Effects — drop shadow, blend, contour, extrude and lens.

Other entries in this section