- appearance.setNewArt is listed among the commands a plug-in may call, so
every_command_is_reviewed passes.
- appearance.setNewArt refuses `tint` on a pattern that has no swatch entry,
and its help and docs/mcp.md say an omitted `weight` keeps the stored weight.
- The dash checks of appearance.setNewArt, strokeDashes and
defaultStrokeDashes share one helper.
- defaultStrokeWidth, defaultStrokeMiterLimit and defaultStrokeDashOffset
compare exactly, so a slightly different value reaches new art.
- An RGB default in a CMYK document is compared in the document's color mode,
and a color read back from a path or a default (a Gray too small for its
value to name) assigns back without a command.
- addDocument starts from the profile's built-in first preset even when a
saved preset has the same name.
- A saved preset's rows are read as at most 1000.
- The page item and path lists are kept for each open document, the
selection list stops at its limit, the typename of a removed PathPoint and
of a stale PathPoints or PathItems throws, and an item edit whose
selection cannot be restored is undone with it.
- A path's subpath starts are counted once and kept while its points keep
their layout, so reading or setting each of its points in turn no longer
walks every subpath for each point.
- A run that ended while waiting for a growth answer is checked against its
allowance again before it is kept.
- docs/mcp.md says which file limits apply to reading a profile's file.
When a group or compound path is selected together with one of its
paths, and that path also has its own anchor or segment pick,
selectedPathPoints and PathPoint.selected now report the path as
selected as a whole, as docs/mcp.md says for a path in a selected
group. Before, the path's own pick was reported instead.
Assigning PathPointSelection.ANCHORPOINT to a point of a path with
selected segments replaces that path's segment selection, as
select.anchorsMany does for any anchor pick on such a path; the module
doc, the setter's doc and docs/mcp.md now say so. docs/mcp.md also says
that changing PathPoint.selected adds no undo step, and that assigning
guides the value a path already has runs no command, which is why a
hidden, locked or compound-member path, or locked guides, throw only
for the other value. The touched lines of the PathItem paragraph are
rewrapped to its width.
New tests cover a point added by the script and selected in the same
run, selectedPathPoints after an added point, a path with a selected
segment, and assigning guides its current value while guides are
locked.
PathPoint.selected and PathItem.selectedPathPoints now count a path as
selected as a whole when a group or compound path that holds it is
selected, as the canvas shows its anchors. Assigning
PathPointSelection.NOSELECTION to a point of such a path throws an
error that says it is not available yet, and ANCHORPOINT on it runs no
command, so the selection is not left holding both the group and one
of its paths.
Selecting a point of a guide while guides are locked throws an error
instead of running a selection that the guide lock undoes.
Assigning guides = false on a path that cannot be selected (outside
the isolated object) throws Cannot edit, as guides = true does.
Reading PathPoint.selected no longer writes the point changes waiting
for its path unless they add or remove points, so a loop that reads
selected and moves the selected anchors writes the path once.
Assigning PathItem.guides on a path inside a compound path made every
path in that compound a guide, because Make Guides acts on the compound
that holds a selected member; it now throws an error that says it is not
available yet, as duplicate and zOrder do for compound members. While
guides are locked, assigning false threw and assigning true succeeded;
now either value throws when it would change the path. A path that
cannot be selected, for example one outside the isolated group or on a
locked artboard, throws Cannot edit before any command runs. Assigning
the value a path already has runs no command and throws no error. These
are VectorCraft's own rules, and docs/mcp.md lists them with the other
rules of its own.
Tests cover a compound path member, a clipping path, a locked and a
hidden path, the guide lock in both directions, a path in a group of
two, and the TypeError name for a value that is not a boolean.
PathPoint.selected and PathItem.selectedPathPoints threw an error that
said they were not available yet, and PathItem.guides could only be
read. selected now reads PathPointSelection.ANCHORPOINT for a selected
anchor point and NOSELECTION otherwise, and assigning either adds or
removes the point with select.anchorsMany, keeping the other selected
objects and anchors. Every point of a path selected as a whole counts
as selected. Direction handles cannot be selected on their own, so the
handle values throw an error. selectedPathPoints lists the selected
points in pathPoints order. Assigning guides makes the path a guide or
a path again with view.guides.make or view.guides.release, keeping the
selection; a value that is not a boolean throws a TypeError, and a
clipping path cannot be made a guide. A value the point or path already
has runs no command.
https://ai-scripting.docsforadobe.dev/jsobjref/PathPoint/https://ai-scripting.docsforadobe.dev/jsobjref/PathItem/
A PathPoint read before vc.run('path.setAnchors', ...) replaced its
path's points stayed valid, so a later write changed the replacement's
point at the same index. The object model now keeps each path whose
points the script read and checks it after every command and when a
point is used. When the path's points differ from the ones it last saw,
or the path is gone, the points read before throw `Stale path point`.
This covers any command run with vc.run, an undo, and a change that a
later command reverses. Points stay valid through the object model's
own changes to the path or to an object that holds it, such as
translate().
docs/mcp.md and the module doc state the rule.
A PathPoint kept its index, so after `remove()` of an earlier point it
read and changed the point that moved into its place. A point read
before the script removed a point of its path (`remove()`,
`removeAll()`) or replaced its points (`setEntirePath`) now throws
`Stale path point`.
- Changes to a path's points (closed, setEntirePath, pathPoints and each
PathPoint) wait in the object model and are written by one
path.setAnchors before any other member or command, before another
path's points change, and when the script ends. A loop over 2,000
points now runs one command and makes one undo step. A path aligned to
the pixel grid is written at each change so its points read snapped.
- A color component reads with the fewest decimals, at least 4, that give
the stored value back, so assigning a color read from a path leaves the
path unchanged (RGB, CMYK, Gray and Lab, fill and stroke).
- add() and the shape creators put the new path on top of the active
layer whatever the drawing mode, and leave the mode as it was.
- fillOverprint and strokeOverprint change the top fill or stroke only.
- filled = true on a compound path member places the new-art gradient on
the compound path's bounds.
- An identity rotate or resize checks its arguments and runs no command,
on an empty path too.
- Tests for each of these, and for setAnchors reading smooth false as a
corner.
Docs: docs/mcp.md, docs/gaps.md, docs/roadmap.md,
docs/target-app-parity.md.
Document.pathItems lists a document's paths and makes empty paths,
rectangles, rounded rectangles, ellipses, polygons and stars with the
parameter order and defaults of the PathItems help page. A PathItem
reads and changes its points, closed state, fill rule, area, length,
fill and stroke colors, stroke options and overprint, and translates,
rotates and resizes. PathPoints and PathPoint read and set each
point's anchor, handles and type. RGBColor, CMYKColor, GrayColor,
LabColor and NoColor make colors; a gradient, spot or pattern paint
reads as GradientColor, SpotColor or PatternColor.
Each change runs an existing command (path.create, the shape.*
commands, path.setAnchors, path.close, path.setFillRule,
paint.setFill, paint.setStroke, stroke.set, object.setOverprint,
object.move, object.rotate, object.scale) inside the run's one undo
step, and puts back the selection and the paint for new art. A value
that changes nothing runs no command; a bad value throws and changes
nothing.
path.setAnchors now makes an anchor a corner when it is given
`smooth: false`; before, the key was ignored and handles in line made
it smooth.