.. _Selection: ================================================ Selection ================================================ Description ----------- The selected area of the document or layer. Properties ^^^^^^^^^^ +----------------------------------------------+----------------------------------------------------+ | :ref:`bounds` readonly | The bounding rectangle of the entire selection. | +----------------------------------------------+----------------------------------------------------+ | :ref:`parent` readonly | The object's container. | +----------------------------------------------+----------------------------------------------------+ | :ref:`solid` readonly | If true, the bounding rectangle a solid rectangle. | +----------------------------------------------+----------------------------------------------------+ | :ref:`typename` readonly | The class name of the object. | +----------------------------------------------+----------------------------------------------------+ Methods ^^^^^^^ +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`clear` readonly | Clears the selection and does not copy it to the clipboard. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`contract` readonly | Contracts the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`copy` readonly | Copies the selection to the clipboard. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`cut` readonly | Cuts the current selection to the clipboard. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`deselect` readonly | Deselects the current selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`expand` readonly | Expands the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`feather` readonly | Feathers the edges of the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`fill` readonly | Fills the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`grow` readonly | Grows the selection to include all adjacent pixels falling within the specified tolerance range. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`invert` readonly | Inverts the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`load` readonly | Loads the selection from the specified channel. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`makeWorkPath` readonly | Makes this selection item the workpath for this document. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`resize` readonly | Resizes the selected area to the specified dimensions and anchor position. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`resizeBoundary` readonly | Scales the boundary of the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`rotate` readonly | Rotates the object. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`rotateBoundary` readonly | Rotates the boundary of the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`select` readonly | Selects the specified region. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`selectAll` readonly | Selects the entire layer. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`selectBorder` readonly | Selects the selection border only (in the specified width); subsequent actions do not affect the selected area within the borders. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`similar` readonly | Grows the selection to include pixels throughout the image falling within the tolerance range. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`smooth` readonly | Cleans up stray pixels left inside or outside a color-based selection (within the radius specified in pixels). | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`store` readonly | Saves the selection as a channel. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`stroke` readonly | Strokes the selection. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`translate` readonly | Moves the object relative to its current position. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`translateBoundary` readonly | Moves the boundary of selection relative to its current position. | +----------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 Selection/parent.rst Selection/typename.rst Selection/bounds.rst Selection/solid.rst Selection/clear.rst Selection/copy.rst Selection/cut.rst Selection/selectBorder.rst Selection/contract.rst Selection/fill.rst Selection/stroke.rst Selection/selectAll.rst Selection/deselect.rst Selection/select.rst Selection/expand.rst Selection/feather.rst Selection/grow.rst Selection/invert.rst Selection/similar.rst Selection/smooth.rst Selection/store.rst Selection/load.rst Selection/translate.rst Selection/translateBoundary.rst Selection/rotate.rst Selection/rotateBoundary.rst Selection/resize.rst Selection/resizeBoundary.rst Selection/makeWorkPath.rst