Home/ Reference/ Effects

shape.ClearEffect()

Removes every effect at once, back to a clean shape. Clear effects before a batch run to avoid the strange results that stacked effects produce.

Signature

shape.ClearEffect()

Notes

Removes every effect at once, back to a clean shape. Clear effects before a batch run to avoid the strange results that stacked effects produce.

Python example (runnable)

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

for i in range(1, shapes.Count + 1):
    try:
        shapes.Item(i).ClearEffect()
    except Exception as e:
        print("#", i, " failed to clear: ", e)

print("Cleared", shapes.Count, " effects on object(s)")

About this section: Effects

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

Other entries in this section