Home/ Reference/ Effects

shape.CreatePerspective()

Perspective: pulls a flat object into a trapezoid, near large and far small. Wall and packaging-side mockups.

Signature

shape.CreatePerspective()

Notes

Perspective: pulls a flat object into a trapezoid, near large and far small. Wall and packaging-side mockups.

Python example (runnable)

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

try:
    eff = shape.CreatePerspective()
    print("Perspective created, effect type: ", eff.Type)
except Exception as e:
    print("Perspective failed: ", e)

About this section: Effects

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

Other entries in this section