2.3. Diálogo de rutas

Consulte la Sección 5, “ Rutas si no sabe lo que es una ruta.

Figura 15.12. El diálogo de Rutas

El diálogo de “Rutas”

El diálogo de Rutas se usa para gestionar las rutas, le permite crearlas o eliminarlas, guardarlas, convertirlas en o desde selecciones, etc.

2.3.1. Activar el diálogo

Este diálogo es un diálogo empotrable; consulte la Sección 2.3, “Diálogos y empotrables” para obtener ayuda sobre su uso.

Puede acceder:

  • From the main menu, as WindowsDockable DialogsPaths.

  • from the Tab menu in any dockable dialog by clicking on and selecting Add TabPaths.

In the Windows menu, there is a list of detached windows which exists only if at least one dialog remains open. In this case, you can raise the Paths dialog from the main menu: WindowsPaths.

2.3.2. Usar el diálogo de rutas

Each path belongs to one image: paths are components of images just like layers. The Paths dialog shows you a list of all paths belonging to the currently active image: switching images causes the dialog to show a different list of paths. In multi-window mode, you can show the name of the active image at the top of the dock by choosing Show Image Selection from the Tab menu.

If you are familiar with the Layers dialog, you have a head start, because the Paths dialog is in several ways similar.

At the top, there are two Lock icons:

Lock Path

A path icon tells us whether editing the current path is locked (disabled) or not. Clicking the icon toggles between enabled and disabled.

[Nota] Nota

Until GIMP 2.10.32 this was called Lock Path Strokes. That name was considered ambiguous, because the term strokes is also used for stroking lines along a path, which this option does not change.

Lock Path Position

A cross with arrows icon tells us whether the current path position is locked (disabled) or not. When the path position is locked, the path can't be moved. Clicking the icon toggles between enabled and disabled.

The Paths dialog itself shows a list of all paths that exist in the image, with four items for each path:

Visibilidad de la ruta

Un icono de un ojo abierto si la ruta es visible, o un espacio en blanco si no lo es. Visible quiere decir que se dibuja un trazado de la ruta sobre la muestra de la imagen. En realidad la ruta no se muestra en los datos del píxel de la imagen a menos que se haya trazado o representado. Al pulsar sobre el espacio del símbolo del ojo se cambia la visibilidad de la ruta.

La cadena de rutas

Un símbolo de cadena se muestra a la derecha del espacio del símbolo del ojo si la ruta está bloqueada para las transformaciones, o un espacio en blanco si no lo está. Bloqueada para las transformaciones quiere decir que forma parte de un conjunto de elementos (capas, canales, etc) que se verán afectados de la misma manera por las transformaciones (escalar, rotación, etc) aplicadas a cualquiera de ellas. Al pulsar en el espacio el símbolo de la cadena se cambia el estado del bloqueo para las transformaciones de la ruta.

Vista previa de la imagen

Un pequeño icono de la vista previa muestra un esbozo de la ruta. Si pulsa sobre el icono y lo arrastra sobre la imagen se creará una copia de la ruta en la imagen.

Nombre de la ruta

El nombre de la ruta debe ser único en la imagen. Una doble pulsación sobre el nombre le permite editarla. Si el nombre que ha creado ya existe, se le adjunta un número (por ejemplo, #1) que lo hará único.

Si la lista no está vacía, en un momento dado uno de los miembros es la capa activa de la imagen, que será el sujeto de las operaciones que realice mediante el menú del diálogo o los botones de la parte inferior: la ruta activa se muestra resaltada en la lista. Al pulsar sobre una de las entradas se convertirá en la ruta activa.

Al pulsar con el botón derecho sobre una entrada de la lista aparece el menú «Rutas». También puede acceder al menú «Rutas» desde el diálogo del menú de pestaña.

2.3.3. Botones

Todos los botones de la parte inferior del diálogo de rutas se corresponden con las entradas del menú «Rutas» (a la que se accede mediante un doble pulsación sobre una entrada de la lista de las rutas), pero algunas tienen opciones extra para obtenerlas manteniendo pulsadas las teclas modificadoras mientras presiona el botón.

Ruta nueva

See New Path. Holding down Shift makes a new (empty) path with the last used values, without opening the New Path dialog.

Elevar la ruta

See Raise Path. Holding down Shift moves the path to the top of the list.

Bajar la ruta

See Lower Path. Holding down Shift moves the path to the bottom of the list.

Duplicate Paths

See Duplicate Paths.

Paths to Selection

Converts paths into a selection; see Paths to Selection for a full explanation. You can use modifier keys to set the way the new selection interacts with the existing selection:

Modificadores Acción
Ninguna Reemplazar la selección existente
Desplazar Añadir a la selección
Ctrl Extraer de la selección actual
Desplazar+Ctrl Intersectar con la selección actual.
Selección a ruta

Holding down Shift brings up the Advanced Options dialog, which probably is only useful to GIMP developers.

Paint along the paths

See Stroke Paths. Holding down Shift strokes the path based on the last used values without opening the Stroke Paths dialog.

Eliminar la ruta

Delete Path deletes the currently selected path.

2.3.4. El menú contextual de las Rutas

Figura 15.13. El menú contextual de las Rutas

El menú contextual de las “Rutas”

El menú «Rutas» se puede abrir al pulsar con el botón derecho sobre una entrada de ruta en la lista en el diálogo de rutas, o al elegir la entrada superior («Menú de rutas») desde el menú de pestaña del diálogo de rutas. Este menú le da acceso a la mayoría de las operaciones que afectan a las rutas.

Edit Path

Edit Path is an alternative way to activate the Paths tool, used for creating and manipulating paths. It can also be activated from the Toolbox, or by using the keyboard shortcut B.

Editar los atributos de la ruta

Editar los atributos de la ruta abre un pequeño diálogo que le permite cambiar el nombre de la ruta. También puede hacerlo al pulsar dos veces sobre el nombre en la lista en el diálogo de rutas.

Color Tag

Color Tag brings up a sub menu, similar to the one in the Layers Dialog, that allows you to select a color tag for the selected path.

Ruta nueva

Ruta nueva crea una ruta nueva, la añade a la lista del diálogo de rutas, y la convierte en la ruta activa de la imagen. Aparece un diálogo que le permite dar un nombre a la ruta. La ruta nueva se crea sin puntos de anclas, ya que necesitará usar la herramienta de rutas para crearlos antes de que pueda usarlos.

Elevar la ruta

Elevar la ruta mueve la ruta un espacio más arriba en la lista del diálogo de rutas. La posición de una ruta en la lista no tiene una función significativa, ya que simplemente es conveniente para mantener las cosas organizadas.

Bajar la ruta

Bajar la capa mueve la ruta un espacio hacia abajo en la lista del diálogo de rutas. La posición de una ruta en la lista no tiene una función significativa, ya que simplemente es conveniente para mantener las cosas organizadas.

Duplicar la ruta

Duplicate Path creates a copy of the active path, assigns it a unique name, adds it to the list in the Paths dialog, and makes it the active path for the image. The copy will be visible only if the original path was visible.

Eliminar la ruta

Eliminar la ruta elimina la ruta seleccionada actual.

Combinar las rutas visibles

Combinar las rutas visibles toma todas las rutas de la imagen que son visibles (esto es, todas las que muestran símbolos de ojos abiertos en el diálogo de rutas). y las convierte en componentes de una ruta única. Esto puede ser un inconveniente si quiere trazarlas de la misma manera, etc.

Paths to Selection; Add Paths to Selection; Subtract Paths from Selection; Intersect Paths with Selection

These commands all convert the active paths into a selection, and then combine it with the existing selection in the specified ways. (Paths to Selection discards the existing selection and replaces it with one formed from the path.) If necessary, any unclosed components of the path are closed by connecting the last anchor point to the first anchor point with a straight line. The marching ants for the resulting selection should closely follow the path, but don't expect the correspondence to be perfect.

Selección a ruta

Se puede acceder a esta operación de varias maneras:

  • From the main menu, as SelectTo Path

  • Desde el menú del diálogo de rutas, con Selección a la ruta.

  • From the Selection to Path button at the bottom of the Paths dialog.

Selección a la ruta crea una ruta nueva a partir de la selección de la imagen. En la mayoría de los casos la ruta resultante seguirá estrechamente el desfile de hormigas de la selección, pero la correspondencia generalmente no será perfecta.

Converting a two-dimensional selection mask into a one-dimensional path involves some rather tricky algorithms: you can alter the way it is done using the Advanced Options, which are accessed by holding down the Shift key while pressing the Selection to Path button at the bottom of the Paths dialog. This brings up the Advanced Options dialog, which allows you to set 20 different options and variables, all with cryptic names. The Advanced Options are really intended for developers only, and help with them goes beyond the scope of this documentation. Generally speaking, Selection to Path will do what you expect it to, and you don't need to worry about how it is done (unless you want to).

Fill Paths

Se puede acceder a esta operación de varias maneras:

  • From the main menu, as EditFill Paths…

  • From the Paths dialog menu, as Fill Paths….

  • From the Fill Path button in the Tool Options for the Paths tool.

Fill Path fills all areas delimited by the path with the current foreground color or currently selected pattern. See the section about Fill Path for more information.

Stroke Paths…

Se puede acceder a esta operación de varias maneras:

  • From the main menu, as EditStroke Paths…

  • From the Paths dialog menu, as Stroke Paths….

  • From the Paint along the path button at the bottom of the Paths dialog.

  • From the Stroke Path button in the Tool Options for the Paths tool.

Stroke Path renders the active path on the active layer of the image, permitting a wide variety of line styles and stroking options. See the sections about Stroke Path and Stroking for more information.

Copy Paths

Copy Paths copies the active path to the Paths Clipboard, enabling you to paste it into a different image.

[Sugerencia] Sugerencia

También puede copiar y pegar una ruta arrastrando su icono desde el diálogo de rutas en la muestra de la imagen objetivo.

[Nota] Nota

When you copy a path to an image, it is not visible. You have to make it visible in the Paths dialog.

Pegar la ruta

Paste Path creates a new path from the contents of the Path Clipboard, adds it to the list in the Paths dialog, and makes it the active path for the image. If no path has previously been copied into the clipboard, the menu entry will be disabled.

Export Paths

Export Paths… allows you to save a path to a file: it pops up a file save dialog that allows you to specify the file name and location. You can later add this path to any GIMP image using the Import Path command. The format used for saving paths is SVG: this means that vector-graphics programs such as Sodipodi or Inkscape will also be able to import the paths you save. See the Paths section for more information on SVG files and how they relate to GIMP paths.

Importar la ruta

Import Path… creates a new path from an SVG file: it pops up a file chooser dialog that allows you to navigate to the file. See the Paths section for information on SVG files and how they relate to GIMP paths.