OOF2: The Manual

Name

OOF.Graphics_n.Toolbox.Pin_Nodes.Undo — Undo the latest pin.

Synopsis

OOF.Graphics_n.Toolbox.Pin_Nodes.Undo(skeleton)

Details

  • Parent Menu: OOF.Graphics_n.Toolbox.Pin_Nodes
  • Callback: function PinnedNodesToolbox.undoPin in module ooflib.engine.IO.pinnodes
  • Parameters:

    skeleton
    Type: The path to an existing Skeleton object.

Description

As well as keeping track of which Nodes are currently pinned, each Skeleton maintains a stack of previous sets of pinned Nodes. Whenever nodes are pinned or unpinned, a new set is pushed onto the stack. The Undo command operates on the specified Skeleton, popping the latest configuration off of the stack, thereby reverting to the previous set of pinned Nodes. The popped version is not destroyed -- it can be recovered with the OOF.Graphics_n.Toolbox.Pin_Nodes.Redo command.

The skeleton parameter is the fully-qualified name of the Skeleton on which to operate.

The stack is not infinite. When it is full, the oldest set of pinned Nodes will be lost to make room for a new one.

OOF.Graphics_n.Toolbox.Pin_Nodes.Undo is equivalent to OOF.Skeleton.PinNodes.Undo.