mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Merge pull request #10124 from dotCooCoo/feat/screen-print-marks
Color Effects: Create Screen Print Marks draws registration targets and ink lines
This commit is contained in:
18 files changed
+1969
-40
No files matched your search
+56
-1
@@ -12261,6 +12261,8 @@ pastes objects back into the layers and sublayers they came from: in the same do
|
||||
else by the names of the layer and the layers around it (the topmost chain that matches the most names, a shown and
|
||||
unlocked one first). A missing sublayer is made inside its layer, and a missing top-level layer on top, in the paste's
|
||||
undo step. When a matched layer, or a layer around it, is hidden or locked, the paste fails and nothing is pasted.
|
||||
Screen print marks copied with their artboard (`addon.color.screenMarks`) go back into the Screen Print Marks layer
|
||||
even while it is hidden or locked.
|
||||
Drawing modes (`view.drawMode`) apply
|
||||
too: in Draw Inside, `edit.paste`, `edit.pasteInPlace` and `edit.pasteOnAllArtboards` put the objects inside the
|
||||
object drawn into (its clip group, made on the first paste), whatever Paste Remembers Layers says; in Draw Behind,
|
||||
@@ -12340,7 +12342,9 @@ artboard size fields while the tool is in use.
|
||||
`artboard.setProps {artboards: [{index, name?, color?, guideLabel?, locked?, showCenterMark?, showCrossHairs?, showVideoSafeAreas?, videoRulerPixelAspectRatio?, x?, y?, width?, height?}…], scaleArt?, moveArt?, …}` sets several
|
||||
artboards in one undo step, each with its own fields; the other params apply to all of them. The art that moves or
|
||||
scales with each artboard is the art inside it before any of them changes, and an object inside several of them goes
|
||||
with the first one listed that moves or scales its art. An empty list and a list that names an artboard twice are
|
||||
with the first one listed that moves or scales its art. An artboard whose new `x` or `y` at the same size moves its art (`moveArt`) takes its own
|
||||
screen print marks group wherever it lies, and leaves another artboard's group lying on it to that artboard
|
||||
([Create Screen Print Marks](#create-screen-print-marks)). An empty list and a list that names an artboard twice are
|
||||
refused.
|
||||
|
||||
With several artboards selected with the Artboard tool, the desktop app gives a new size to each of them in one such
|
||||
@@ -19186,6 +19190,57 @@ images and patterns keep their colours. → `{changed, swatches: [the document s
|
||||
{"name":"run_command","arguments":{"command":"addon.color.applyNearestSwatch","params":{"library":"document","stroke":false}}}
|
||||
```
|
||||
|
||||
### Create Screen Print Marks
|
||||
|
||||
`addon.color.screenMarks {positions?, size?, weight?, inset?, ink?, inks?, info?, time?, textSize?, textPlace?,
|
||||
textAlign?, artboard?, allArtboards?}` (Object › Plug-ins › Color Effects › Create Screen Print Marks…) draws marks for
|
||||
screen printing inside an artboard as document art, so they print, separate and export with the rest of the art:
|
||||
|
||||
- Registration targets, each a circle half the target's width with a cross the target's width through it, stroked and
|
||||
unfilled. `positions` lists where they go: any of `topLeft`, `top`, `topRight`, `left`, `right`, `bottomLeft`,
|
||||
`bottom`, `bottomRight`, each at most once (default: `top`, `bottom`, `left` and `right`; `[]` draws none). `size`
|
||||
is the target's width in pt, 4…1000 (36); `weight` is the stroke weight, 0.1…20 (1); `inset` is the distance from
|
||||
the artboard's edge to the target's outer edge, −1000…1000 (18), and a negative inset puts the targets outside the
|
||||
artboard.
|
||||
- `ink` is the targets' stroke: `"[Registration]"` (the default), which prints on every plate, or the name of a spot
|
||||
swatch, linked to it.
|
||||
- `inks: true` adds a line that names the document's spot inks in panel order, each name filled with its own ink. Tint
|
||||
swatches, process colors and [Registration] are left out, and with no spot ink the line is left out. A line names
|
||||
at most 256 inks.
|
||||
- `info: true` adds a line with the file name (the title of a document never saved) and the date and time in UTC
|
||||
(`2026-03-04 05:06 UTC`), filled with `ink`. `time` is Unix seconds (default: now); `null`, or no clock (the web),
|
||||
leaves the date out.
|
||||
- `textSize` is the lines' type size, 4…72 pt (9). `textPlace` is `"top"` or `"bottom"` (the default) and
|
||||
`textAlign` is `"left"` (the default) or `"right"`: the lines sit `inset` in from that edge and side, the spot ink
|
||||
line above the file line, and start past a target ticked in that corner. When a line would cross the `top` or
|
||||
`bottom` target on its side, the lines move in past that target. They stay where they are when moving would cross
|
||||
another target or leave the artboard.
|
||||
|
||||
The marks of each artboard are one group, on the top-level marks layer the command made, which it finds by a tag in
|
||||
the layer's data and not by its name. The command makes that layer, named "Screen Print Marks", at the bottom of the
|
||||
stack, locked, when the document has none. Another layer with that name is not used, and the marks layer keeps its
|
||||
role when renamed. A marks layer moved, unlocked or hidden stays as it is.
|
||||
`artboard` is an artboard's index (default: the active artboard; the journal records it as `activeArtboard` for a replay, and recorded actions leave it
|
||||
out) and `allArtboards: true` marks every artboard;
|
||||
giving both is an error. Running the command again replaces that artboard's group and leaves the other artboards'
|
||||
groups alone. A group copied with an artboard duplicated, Alt-dragged or pasted in the same document belongs to the copy.
|
||||
Another artboard's group lying on an artboard that is duplicated, Alt-dragged, copied or cut goes with its own artboard:
|
||||
it is copied with that artboard when that one is copied too, and otherwise stays where it is. Deleting an artboard makes its group ordinary art on the marks layer, so a new artboard never takes it over;
|
||||
it is copied like other art. With art enabled, moves (`artboard.move`, and `artboard.setProps` with `moveArt` and a
|
||||
new `x` or `y` at the same size) and cuts also take marks by their recorded owner (marks lying on another locked artboard stay, as other art does), even when
|
||||
the marks lie outside every artboard, subject to `lockedAndHidden`. When the marks layer was
|
||||
deleted, or the document pasted into has none, pasting an artboard with its marks makes a new marks layer named "Screen Print Marks" at the top level, and the command uses that layer. Marks
|
||||
outside the artboard (a negative `inset`) appear in an export or a print clipped to the artboard only as far as its
|
||||
bleed reaches. It is one undo step, and none when the marks come out the same (`changed: false`). The selection is
|
||||
kept. An unknown position or one named twice, a number out of range, an `ink` that is not [Registration] or a spot
|
||||
swatch, a value of the wrong type (`null` included, except for `time`), nothing to draw (no position, no file line, and no spot ink line or no spot ink to
|
||||
name), and marks that would reach more than 4,000,000 pt from the origin are errors that leave the document unchanged. The dialog previews on the canvas, and its OK is off while nothing is ticked.
|
||||
→ `{changed, layer, ids: [group id…], inks: [spot ink name…]}`
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"addon.color.screenMarks","params":{"positions":["topLeft","topRight","bottomLeft","bottomRight"],"inks":true,"info":true}}}
|
||||
```
|
||||
|
||||
## Arrange Tools add-on
|
||||
|
||||
Arrange Tools is a built-in add-on that lays out, swaps, replaces and sizes selected objects: its commands are
|
||||
|
||||
@@ -3354,6 +3354,12 @@ A VectorCraft addition, not a feature of the reference app, so no area score mov
|
||||
|
||||
A VectorCraft addition (it replaces a script some users ran), so no area score moves. Object › Plug-ins › Color Effects › Create Swatch Legend… (`addon.color.swatchLegend`) opens a dialog (columns, chip size, gap, values, selected swatches only, with a preview) and draws a chip per colour swatch (the selected ones, else all) filled with and linked to its swatch, labelled with its name and values (HEX, RGB, CMYK, Lab or Grayscale; by default its own model; spot swatches marked), black on light chips and white on dark ones, in a grid of chosen columns, chip size and spacing, as one selected group in one undo step (#4919). Tests: `cmd::addons::color::legend::tests` (engine), `addons::color::legend::tests::create_swatch_legend_opens_its_dialog_previews_and_runs_on_ok` (ui-egui).
|
||||
|
||||
## Create Screen Print Marks (2026-11-29)
|
||||
|
||||
A VectorCraft addition, so no area score moves. Object › Plug-ins › Color Effects › Create Screen Print Marks… (`addon.color.screenMarks`) opens a dialog (the eight target positions, size, stroke weight, inset, ink, the spot ink and file lines with their type size, place and alignment, all artboards, with a preview) and draws registration targets (a circle half the target's width with a cross through it) inside the artboard in [Registration] or a spot ink, with an optional line naming the document's spot inks, each in its own ink, and an optional line with the file name and the date and time in UTC. The marks are document art: one group per artboard on a locked "Screen Print Marks" layer made at the bottom of the stack, so they print, separate and export with the rest of the art, where Create Trim Marks draws trim marks only and the PDF export's printer's marks exist only in the exported file. The lines move in past a top or bottom target they would cross. They stay where they are when moving would cross another target or leave the artboard. Marks copied with a duplicated artboard belong to the copy, and another artboard's marks lying on a copied artboard stay with their own artboard. Moving an artboard with its art, by Move Artboard or a new position, takes its own marks, and deleting it makes its marks ordinary art. A paste that makes the deleted marks layer again makes it the marks layer. Running it again replaces that artboard's marks; one undo step, none when the marks come out the same. Remaining: saved presets of the dialog's settings. Tests: `cmd::addons::color::screen_marks::tests` (engine), `addons::color::screen_marks::tests` (ui-egui).
|
||||
|
||||
With art enabled, artboard moves and cuts take eligible screen print marks by their recorded owner, including marks outside every artboard. Tests: `overlapping_artboard_copies_keep_one_marks_group_per_owner`, `off_board_marks_follow_artboard_copies_and_cuts_by_owner`, `moving_an_artboard_uses_marks_ownership_instead_of_containment` in `cmd::addons::color::screen_marks::tests`.
|
||||
|
||||
## Stroke Weight Up and Down shortcuts (2026-11-06)
|
||||
|
||||
Cmd/Ctrl+Alt+. (`stroke.weightUp`) and Cmd/Ctrl+Alt+, (`stroke.weightDown`) raise and lower the weight of each selected stroke from its own weight, with the keys a [public feature request reply](https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/32307397-increment-decrement-stroke-weight-key-commands) names: a quarter unit of Units › Stroke at a time up to one unit, whole units above it, no lower than a quarter unit and no higher than 1000 pt. Type steps its stroked characters; objects without a stroke are left alone; with nothing selected the weight of the next object drawn steps. Each press is one undo step (#5797). Evidence: `tests::strokeux::stroke_weight_up_and_down_step_each_selected_stroke`, `stroke_weight_up_with_nothing_selected_sets_up_new_art`, `cmd::stroke::tests::weight_steps_follow_units_and_stop_at_their_bounds`. Scores unchanged.
|
||||
|
||||
Reference in new issue
Block a user