Home/ Reference/ Effects

eff.DropShadow.Opacity / Direction / Color

Shadow settings you can adjust afterwards: opacity, direction, color. For a subtle lift, drop Opacity to around 20.

Signature

eff.DropShadow.Opacity / Direction / Color

Notes

Shadow settings you can adjust afterwards: opacity, direction, color. For a subtle lift, drop Opacity to around 20.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)
eff = shape.CreateDropShadow(0, 50, 15, 0.05, -0.05,
                             app.CreateRGBColor(0, 0, 0))

ds = eff.DropShadow
try:
    ds.Opacity = 25                                 # lighten it
    print("Opacity: ", ds.Opacity)
except Exception as e:
    print("This version will not let you set opacity directly: ", e)

About this section: Effects

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

Other entries in this section