Home/ Reference/ Layer Advanced

layer.Paste() / layer.PasteSpecial()

Pastes the clipboard onto the named layer rather than the current one. Moving assets between files without the paste-then-drag-the-layer step.

Signature

layer.Paste() / layer.PasteSpecial()

Notes

Pastes the clipboard onto the named layer rather than the current one. Moving assets between files without the paste-then-drag-the-layer step.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
layer = doc.ActivePage.ActiveLayer

try:
    layer.Paste()                                   # a plain paste
    print("Pasted onto layer: ", layer.Name)
except Exception as e:
    print("Paste failed; the clipboard may be empty: ", e)

About this section: Layer Advanced

Layer Advanced — multi-layer and multi-page workflows.

Other entries in this section