Plush

edit#

plupy · Type index

Module: plupy

Group authoring writes into one commit and one editor Undo step: with plupy.edit("Place crates"):.

ParameterTypeMeaning
labelstrHuman-readable Undo label

Entering the context manager yields None. Reads inside the group include staged changes. Normal exit validates and commits the group; exiting through an exception discards it.

Without a group, each successful assignment or editing method commits immediately. Editor commits participate in Undo. Headless commits save immediately; their in-memory Undo history ends when the process exits. There is no extra save() call.

For a script that creates or changes many items together, use one edit group to share the final save and Undo step. Each write is still validated and immediately visible to subsequent reads; grouping does not make scene construction a single bulk operation.

edit(label)

Usage and examples

PlupyError

Source#