mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 15:54:53 +00:00
Cutting Tools: Banner Hems and Grommets marks a banner's hems and grommet holes
Object › Plug-ins › Cutting Tools › Banner Hems and Grommets… (`addon.cutting.banner`) marks where a printed banner is hemmed and where its grommets go. The banner is the bounds of the selected art, or each artboard when nothing is selected. On each chosen side the command adds a hem line a set depth inside the edge (1 in by default) and grommet marks a set inset inside it (0.5 in): one at each end of the side and the rest spread evenly, as few as keep them at most a set spacing apart (24 in). A corner that two chosen sides share gets one grommet. Each grommet mark is a circle (27 pt by default) with a cross through its center. The marks are stroked in a chosen swatch ([Registration] by default) with no fill, in one group named Banner Marks per banner on top of the current layer, selected, as one undo step. While a clip group is edited in isolation, the group goes outside the outermost clip group, as Weed Box and Lines does. The command refuses every side off, no hem and no grommets, and bad params with a message. It also refuses a hem or inset that reaches the far edge of the banner when one of two opposite sides is chosen, or that meets the marks of the opposite side when both are chosen, an inset of more than half a chosen side's length, and more than 100000 grommets. The dialog has Preview. The grommets' distance from the edge is `grommetInset`, so the dialog shows it as Grommet Inset with its own catalog rows. The new Diameter catalog rows also translate the Diameter field of the `shape.flare` command dialog, which had no rows. Docs: docs/mcp.md (Cutting Tools add-on), docs/target-app-parity.md and ROADMAP.
This commit is contained in:
+34
-3
@@ -10728,9 +10728,9 @@ it ends up in front), baked with `effect.expandAppearance`, then `object.pathfin
|
||||
|
||||
## Cutting Tools add-on
|
||||
|
||||
Cutting Tools is a built-in add-on that prepares art for cutting. Its commands are `addon.cutting.bridges` and
|
||||
`addon.cutting.weed`; in the desktop app they are Object › Plug-ins › Cutting Tools › Stencil Bridges… and Weed Box and
|
||||
Lines….
|
||||
Cutting Tools is a built-in add-on that prepares art for cutting. Its commands are `addon.cutting.bridges`,
|
||||
`addon.cutting.weed` and `addon.cutting.banner`; in the desktop app they are Object › Plug-ins › Cutting Tools › Stencil
|
||||
Bridges…, Weed Box and Lines… and Banner Hems and Grommets….
|
||||
|
||||
### Stencil Bridges
|
||||
|
||||
@@ -10820,6 +10820,37 @@ dialog with Preview; a Spacing above 0 is used instead of the Count.
|
||||
{"name":"run_command","arguments":{"command":"addon.cutting.weed","params":{"margin":"0.25 in","direction":"both","spacing":"2 in","gap":1}}}
|
||||
```
|
||||
|
||||
### Banner Hems and Grommets
|
||||
|
||||
`addon.cutting.banner {hem?, grommets?, spacing?, grommetInset?, diameter?, top?, right?, bottom?, left?, weight?,
|
||||
swatch?, allArtboards?}` marks where a printed banner is hemmed, its edge folded back and sewn
|
||||
([hem](https://en.wikipedia.org/wiki/Hem)), and where grommets, rings set into the material to hang it, are punched
|
||||
([grommet](https://en.wikipedia.org/wiki/Grommet)). The ranges, defaults and rules below are VectorCraft's own. The banner
|
||||
is the bounds of the selected art, or each artboard when `allArtboards` is true (the default when nothing is selected).
|
||||
`top`, `right`, `bottom` and `left` (each true by default) choose the sides that get marks. On each chosen side a hem
|
||||
line runs the whole length of the edge, `hem` points inside it (0 to 100000, default 72; 0 leaves the hem lines out).
|
||||
With `grommets` on (the default), each chosen side gets grommet marks `grommetInset` points inside the edge (0 to
|
||||
100000, default 36): one at each end of the side, `grommetInset` from the edges across it, and the rest spread evenly
|
||||
between them, as few as keep them at most `spacing` points apart (more than 0 and at most 100000, default 1728, 24 in). A corner that two
|
||||
chosen sides share has one grommet. Each grommet mark is a circle `diameter` points wide (0.01 to 1000, default 27) with
|
||||
a cross through its center. The marks are stroked `weight` points wide (0.01 to 1000, default 0.3) in the color swatch
|
||||
`swatch` (default `"[Registration]"`), with no fill.
|
||||
|
||||
Each banner gets one group named "Banner Marks", holding its hem lines (named "Hem") and its grommets (groups named
|
||||
"Grommet"), added on top of the current layer and selected, as one undo step. While a clip group, or a group inside one,
|
||||
is edited in isolation, the groups go on top of the container that holds the outermost clip group around it. The command
|
||||
fails with every side off, with no hem and no grommets, with nothing selected while `allArtboards` is false, when a
|
||||
banner has no width or height, when a `hem` above 0 reaches the far edge of the banner (the full height with only one
|
||||
of the top and bottom chosen, or the full width with only one of the left and right) or meets the hem on the opposite
|
||||
side (half the height or width with both chosen), when a `grommetInset` does the same for the grommets or is more than half
|
||||
the length of a chosen side, and when the grommets would be more than 100000. Result:
|
||||
`{id, ids, hems, grommets}`: the first group's id, every group's id, and the number of hem lines and grommet marks.
|
||||
Banner Hems and Grommets… opens the command dialog with Preview.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"addon.cutting.banner","params":{"hem":"1 in","grommetInset":"0.5 in","spacing":"2 ft"}}}
|
||||
```
|
||||
|
||||
## Color Effects add-on
|
||||
|
||||
Color Effects is a built-in add-on: its effects are colour adjustments in Effect › Color Effects, its command is
|
||||
|
||||
@@ -2128,6 +2128,10 @@ A VectorCraft addition, so no area score moves. Object › Plug-ins › Cutting
|
||||
|
||||
A VectorCraft addition, not a feature of the reference app, so no area score moves. Object › Plug-ins › Cutting Tools › Weed Box and Lines… (`addon.cutting.weed`) adds a weed box and weeding lines around the selected art for vinyl cutting ([what a weeding border is](https://help.arlon.com/what-is-a-weeding-border)). The rest is VectorCraft's own: the box is a rectangle at a margin around the art, and the lines run across it horizontally, vertically or both ways, by count or by spacing, and stop at the art's outlines or at a gap from them. The box and the lines are straight paths stroked in a chosen swatch ([Registration] by default), in one group named Weeding on top of the current layer, added as one undo step. The art is measured by the outlines a cutter cuts: compound paths by their fill rule, type by its glyph outlines, clip groups by what shows, images by their frames, placed files by the art they show, symbol instances by their art, and blends and other live objects by the art they draw. The dialog has Preview. Tests: `cmd::addons::cutting::weed::tests` in `vectorcraft-engine`, `weed_box_and_lines_previews_cancels_and_runs_on_ok` in `vectorcraft-ui-egui` and `command_sweep`. Commands: `docs/mcp.md` › Cutting Tools add-on › Weed Box and Lines.
|
||||
|
||||
## Cutting Tools add-on: Banner Hems and Grommets (2026-11-13)
|
||||
|
||||
A VectorCraft addition, so no area score moves. Object › Plug-ins › Cutting Tools › Banner Hems and Grommets… (`addon.cutting.banner`) marks where a printed banner is hemmed ([hem](https://en.wikipedia.org/wiki/Hem)) and where its grommets go ([grommet](https://en.wikipedia.org/wiki/Grommet)). The rest is VectorCraft's own: the banner is the selected art's bounds or each artboard; each chosen side gets a hem line at a set depth inside its edge (1 in by default) and grommet marks at a set inset (0.5 in), one at each end of the side and the rest spread evenly at most a set spacing apart (24 in), with one grommet at a shared corner. Each grommet mark is a circle with a cross through its center. The marks are stroked in a chosen swatch ([Registration] by default), in one group named Banner Marks per banner on top of the current layer, added as one undo step. The dialog has Preview. Tests: `cmd::addons::cutting::banner::tests` in `vectorcraft-engine`, `banner_hems_and_grommets_previews_cancels_and_runs_on_ok` in `vectorcraft-ui-egui` and `command_sweep`. Commands: `docs/mcp.md` › Cutting Tools add-on › Banner Hems and Grommets.
|
||||
|
||||
## Path Precision Tools add-on: Divide into Dashes (2026-11-01)
|
||||
|
||||
A VectorCraft addition, not a feature of the reference app, so no area score moves. Object › Plug-ins › Path Precision Tools › Divide into Dashes… cuts the selected paths into separate open paths along the curve (arc length, not straight distance): each `dash` long (0.01 to 1000000 pt, 10 by default) with `gap` between them (0 by default: the pieces touch); the gap pieces are left out unless Remove Gaps is off. With direct-selected segments (or anchors) only those runs are divided, the pattern running on across segments that follow one another, and the rest of such a path stays as pieces of its own. Fit to Corners and Ends gives every run between corners and ends a whole number of dashes, all stretched or squeezed alike so it starts and ends on a dash (a closed path without corners holds whole periods); otherwise the lengths are exact and each run's last piece is what is left. Every piece keeps the path's appearance and is selected; one undo step; at most 100000 pieces (more is refused). The dialog takes lengths in any unit and previews on the canvas. Tests: `dashes::tests` in `vectorcraft-pathops` (exact and fitted lengths, curves measured along them, picked segments on open and closed paths, the piece cap and bad patterns), `divide_into_dashes_*` in `cmd::addons::pathtools::tests` in `vectorcraft-engine` (gaps removed or kept, fitted lengths, the stroke kept, one undo step, selected segments only, bad params and too many pieces refused), `divide_into_dashes_opens_its_dialog_previews_and_runs_on_ok` in `vectorcraft-ui-egui` and `command_sweep`. Commands: `docs/mcp.md` › Path Precision Tools add-on.
|
||||
|
||||
Reference in New Issue
Block a user