Layer Clip Extension
This is a a set of Inkscape extension scripts for setting and removing
clip paths for entire layers. Inkscape has no trouble rendering or
editing layers with clip paths, but it currently has no built-in method
of setting the clip path for a layer&emdash;that is the purpose of
these extensions.
Download:
inkscape-layerclip-0.1.1.zip
Installation:
Simply unzip the downloaded file into the following directory:
- Windows:
C:\Program Files\Inkscape\share\extensions
- Linux:
/usr/share/inkscape/extensions
(system-wide
install) or ~/.config/inkscape/extensions
(single-user install)
- OS X:
/Applications/Inkscape.app/Contents/Resources/extensions
Usage:
(Or, see an example with screenshots)
Once the extensions are installed, a "Layer Clip" submenu will appear
within Inkscape's "Extensions" menu. The "Layer Clip" menu provides
several options:
- Clip containing layer: Select a single object and then run this
extension to set that object as the clip path for the layer
that contains it. This will mark the layer with "(c*)" to
indicate that the layer contains an object that is being used
to clip its containing layer, and with "(C)" to indicate that
the layer has a clip path applied to it. (These markers are
simply added to the layer name to make it easier to tell when
clip paths are in use.)
- Clip layer above: Like "Clip containing layer", but sets the
object as the clip path for the layer above the one that
contains it. The layer containing the object will be marked
with "(c+)" (instead of "(c*)" for "Clip containing layer").
- Clip layer below: Like "Clip containing layer", but on the
layer below the layer containing the selected object. Marks
the object's layer with "(c-)".
- Clip parent layer: Like "Clip containing layer", but on the
parent layer of the layer containing the selected object.
Marks the object's layer with "(c**)".
- Remove layer clip: Select an object in a clipped layer and then
run this extension to remove the clip path from a layer. The
"(C)" marker will also be removed, if one is present. The
marker on the layer that held the actual clip path will not be
removed, but you can remove it yourself by manually editing the
layer name.
- Reset clippath transforms: If you move an object that is being
used as a clip path for a layer, the layer will still be
clipped based on the old position. Run this extension to fix
the problem.