evil-mad-EggBot/inkscape_driver/eggbot_hatch.inx

82 wiersze
3.3 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Hatch fill</name>
<id>command.evilmadscientist.eggbot_hatch</id>
<dependency type="extension">org.inkscape.output.svg.inkscape</dependency>
<dependency type="executable" location="extensions">eggbot_hatch.py</dependency>
<param name="tab" type="notebook">
<page name="splash" gui-text="Hatch Fill">
<label>
An extension to fill all (or selected) closed figures in your
drawing with paths consisting of back-and-forth hatch lines.
</label>
<param name="hatchSpacing" type="float" min="0.001" max="1000" indent="2"
precision="3" gui-text="Hatch Spacing">3.0</param>
<param name="units" type="optiongroup" appearance="combo"
indent="4" gui-text="Spacing Units :">
<option value="2">px</option>
<option value="3">mm</option>
<option value="4">inch</option>
</param>
<param name="hatchAngle" type="float" min="-360" max="360" indent="4"
gui-text="Hatch Angle (degrees)">45</param>
<param name="crossHatch" type="bool" indent="4" gui-text="Crosshatch">false</param>
<separator />
<param name="connect_bool" type="bool" indent="2" gui-text="Connect Nearby Ends">true</param>
<param name="hatchScope" type="float" min="1.1" max="5.0" indent="2"
gui-text="Range of end connections (default: 3)">3.0</param>
<separator />
<param name="inset_bool" type="bool" indent="2" gui-text="Inset Fill from Edges">true</param>
<param name="inset_dist" type="float" min="0.001" max="1000" precision="3" indent="2"
gui-text="Inset Distance, in selected units">0.5</param>
<separator />
<param name="tolerance" type="float" min="0.1" max="100" indent="2"
gui-text="Tolerance (default: 2.0)">2.0</param>
</page>
<page name="info" gui-text="Help">
<label>
Hatch spacing is the distance between hatch lines, measured in selected units. Hatch angle is in
degrees from horizontal; e.g., 90 for vertical.
</label><label>
The Crosshatch option will add a second set of hatches, perpendicular to the first.
</label><label>
The Connect Nearby Ends option will join nearby line ends with a smooth curve, giving a different
appearance and reducing the number of pen lifts when using robotic tools like pen plotters. The
Range parameter sets the distance (in hatch spacing) over which end connections may be made. Large
values may result in hatches where you don't want them.
</label><label>
The Inset Fill from Edges option allows you to hold back the hatches away from the edge of your
original object. This can allow you to more reliably "color inside the lines".
</label><label>
The Tolerance parameter affects how precisely the hatches try to fill the input paths.
</label><label>
Hatches will have the same stroke color and width as the original object. When filling more than one
object, the hatches will be grouped with their original (filled) objects.
</label>
<separator />
<label indent="2">
v2.4.3. Copyright 2022, Evil Mad Scientist</label>
</page>
</param>
<effect needs-live-preview="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="EggBot"/>
</effects-menu>
</effect>
<script>
<command location="extensions" interpreter="python">eggbot_hatch.py</command>
</script>
</inkscape-extension>