Home/ Reference/ Shape Appearance

shape.Lens

Lens (magnify, fisheye, color transform and so on).

Signature

shape.Lens

Notes

Lens (magnify, fisheye, color transform and so on).

Python example (runnable)

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

try:
    shape.CreateLens(1)          # 1 = magnify (other types in cdrLensType)
    shape.Lens.Rate = 150        # magnify to 150%
    print("Lens added")
except Exception as e:
    print("Lens API unavailable: ", e)

About this section: Shape Appearance

Shape Appearance — outline, fill and transparency shortcuts.

Other entries in this section