live.GroupStash
GroupStash(stashed=dict())Existing node groups renamed out of the way before a run.
Maps each original name to the old tree, now named <name>.stale.
Attributes
| Name | Description |
|---|---|
stashed |
Methods
| Name | Description |
|---|---|
| keep_edits | Carry the layout edits made to each old tree over to the tree the |
| replace | Success path: for each name, if the run created a new tree of the |
| restore | Failure path: remove any partial build under an original name and |
keep_edits
keep_edits()Carry the layout edits made to each old tree over to the tree the run built under its name (see :mod:nodebpy.layout.keep).
replace
replace()Success path: for each name, if the run created a new tree of the same type under it, point the old tree’s users (group nodes, modifiers, pinned editors) at the new one, carry its asset status over (:func:copy_asset) and remove the old; otherwise the old tree keeps its original name. Empties the stash, so calling it (or :meth:restore) again is a no-op.
restore
restore()Failure path: remove any partial build under an original name and give the old trees their names back. Empties the stash, so calling it (or :meth:replace) again is a no-op.