Home/ Reference/ Transparency & Blend

shape.Transparency.MergeMode

Blend mode (multiply, screen, overlay and so on). The enum values shift between versions, so don't memorize the numbers — read the current one, check it against the

Signature

shape.Transparency.MergeMode

Notes

Blend mode (multiply, screen, overlay and so on). The enum values shift between versions, so don't memorize the numbers — read the current one, check it against the UI, then change that single value.

Python example (runnable)

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

shape.Transparency.ApplyUniformTransparency(40)
print("Merge mode code: ", shape.Transparency.MergeMode)

# record the original first so you can undo a bad edit
old = shape.Transparency.MergeMode
shape.Transparency.MergeMode = old
print("Writing the mode back works, so the property is read-write")

About this section: Transparency & Blend

Transparency & Blend — opacity and merge modes.

Other entries in this section