Home/ Reference/ Transparency & Blend

shape.Transparency.ApplyPatternTransparency() / ApplyTextureTransparency()

Drives transparency from a pattern or texture, for a mottled, frosted, cut-out look. The signatures are long and vary by version — get the minimal call working first

Signature

shape.Transparency.ApplyPatternTransparency() / ApplyTextureTransparency()

Notes

Drives transparency from a pattern or texture, for a mottled, frosted, cut-out look. The signatures are long and vary by version — get the minimal call working first, then add arguments.

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.Transparency.ApplyPatternTransparency(0)   # 0 = two-colour pattern
    print("Pattern transparency applied, type: ", shape.Transparency.Type)
except Exception as e:
    print("Pattern transparency failed: ", e)
    shape.Transparency.ApplyUniformTransparency(50)  # fall back to uniform transparency

About this section: Transparency & Blend

Transparency & Blend — opacity and merge modes.

Other entries in this section