Files
vectorcraft/docs
dotCooCoo 3aaea54d86 Scripts: a SpotColor without a spot throws, and a spot keeps an RGB color in a CMYK document
- A fill or stroke linked to a global process swatch reads as a
  SpotColor without a spot. That color does not name its swatch, so
  assigning it to any fill or stroke throws an error that says it is
  not available yet, and the path keeps its paint.
- A spot's color, set through Spot.color or Swatch.color, keeps an
  RGBColor in a CMYK document as RGB, as it keeps a CMYKColor in an RGB
  document, and assigning the color it has again records no undo step.
  A process swatch's Swatch.color still stores an RGBColor in a CMYK
  document as CMYK, and assigning that RGBColor again records no step.
- docs/mcp.md and the module notes state that a spot keeping a color of
  the other color space is VectorCraft's own rule: the Spot page
  (https://ai-scripting.docsforadobe.dev/jsobjref/Spot/) says a color in
  another space than the document's gives an error, and spots.add()
  converts the fill to the document's space as that page asks. They
  also state VectorCraft's own SpotColor tint defaults: 100 from
  new SpotColor(), 0 for a color object without a tint.
- Tests cover a path painted with Registration through a SpotColor, a
  SpotColor without a tint, and spot and process swatch colors in a
  CMYK document.

Docs: docs/mcp.md.
2026-11-23 12:30:55 -08:00
..
2026-11-20 05:45:14 +07:00
2026-11-19 15:12:20 +07:00
2026-11-20 06:07:45 +07:00