OOF2: The Manual

Name

OOF.Graphics_n.Layer.Select — Select the given graphics layer.

Synopsis

OOF.Graphics_n.Layer.Select(n)

Details

  • Parent Menu: OOF.Graphics_n.Layer
  • Callback: function GfxWindow.selectLayerCB in module ooflib.common.IO.ghostgfxwindow
  • Options: no_gui=True
  • Parameters:

    n
    Layer index. Type: Integer.

Description

Select a graphics Layer. The Layer is specified by its position n in the window's layer list. The unlisted layers must be counted when computing n. This command isn't very friendly in scripts, because it can be hard to determine n.[21]

Many GUI commands operate on the currently selected Layer. In scripts or in text mode, it's not usually necessary to select a Layer before operating on it, because the scripted versions of most commands specify which layer they apply to. So even though a script saved from a GUI session may contain many <guicommand>Select</guicommand> calls, they are harmless and can usually be ignored.

See Also



[21] Sorry about that.