Std Undo

From LabRPS Documentation
Revision as of 13:08, 26 October 2024 by LabRPS (talk | contribs) (Created page with "{{Docnav | |Redo |Std Edit Menu |IconL= |IconR=Std_Redo.svg |IconC=Labrps.svg }} {{GuiCommand |Name=Std Undo |MenuLocation=Edit → Undo |Phenomena=All |Shortcut={{KEY|Ctrl}}+{{KEY|Z}} |SeeAlso=Std Redo }} ==Description== The '''Std Undo''' command undoes the last action. ==Usage== # There are several ways to invoke the command: #* Press the {{Button|16px Undo}} button. #* Select the {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Std Undo.svg Std Undo

Menu location
Edit → Undo
Phenomena
All
Default shortcut
Ctrl+Z
Introduced in version
-
See also
Std Redo

Description

The Std Undo command undoes the last action.

Usage

  1. There are several ways to invoke the command:
    • Press the Std Undo.svg Undo button.
    • Select the Edit → Std Undo.svg Undo option from the menu.
    • Use the keyboard shortcut: Ctrl+Z.

Options

  • To undo multiple actions click on the small black down arrow to the right of the Std Undo.svg Undo button and select from the list.

Preferences

See also: Preferences Editor.

  • The Undo/Redo functionality can be disabled by unchecking the Edit → Preferences... → General → Document → Using Undo/Redo on documents option. But this is not recommended.
  • The maximum number of Undo/Redo steps is controlled by Edit → Preferences... → General → Document → Maximum Undo/Redo steps.

Scripting

See also: Autogenerated API documentation and LabRPS Scripting Basics.

To undo the last action use the undo method of the document object. Its counterpart, the redo method, is also available.

import LabRPS

LabRPS.ActiveDocument.undo()

When running LabRPS in pure console mode (CLI), the undo/redo mechanism isn't enabled by default. It must be explicitly activated for each document.

import LabRPS

LabRPS.ActiveDocument.UndoMode = 1