Files
vectorcraft/docs
dotCooCoo c98c18c563 Scripts: name lookups in every collection, and growth checked at the end
- `pageItems`, `pathItems`, `groupItems` and `compoundPathItems` of a
  layer or group, the document's `pathItems`, `layers` and `artboards`
  read with a name give what `getByName` gives, and a name nothing has
  is not `in` them. Before, only the document's `pageItems` did.
- A compound path's `pathItems.removeAll()` keeps the compound path,
  empty, as `remove()` of its last path does. Before, the compound path
  was deleted too and the collection went stale.
- A Live Paint group's `pathItems`, `groupItems` and
  `compoundPathItems` throw `Cannot add an object to a Live Paint group`
  and make nothing. Before, a new path joined the group's source paths
  and the script got back an object that was not in the collection.
- After each command, the points the run read are checked only for the
  paths in the parts of the document that changed, so a script that
  reads points of many paths and then edits each one no longer looks at
  every path after every edit.
- A script that ends with nothing left to write, past the growth
  allowance the last answer gave, is asked again before its changes are
  kept, as one that writes point changes at the end is.
- A new object of a host class adds its handle to the heap's total, as
  a collection counts it, so objects made between collections cannot
  go past the heap limit.

Docs: docs/mcp.md (collection errors, artboard index errors).
2026-11-27 18:37:26 -08:00
..