mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Scripts: retrace refuses a tracing that holds artwork its trace did not make
imageTrace.make records the ids of the objects it made in the tracing's trace settings as `made`, and copying the tracing records the ids of their copies. Tracing again through the scripting API throws, with nothing changed, when the tracing holds any other object, whether it was added in this run, an earlier run or by a command. A tracing saved without `made` is checked only for objects added in the same run, as before.
This commit is contained in:
1 parent
374b31b6f6
commit
795bef8b29
8 files changed
+284
-6
No files matched your search
+5
-1
@@ -3243,7 +3243,11 @@ through `$`:
|
||||
across and down. Assigning an option, or `loadFromPreset(name)`, traces again with `imageTrace.make`, keeps the
|
||||
source image and the view, and a value the tracing already has runs no command. Assigning `viewRaster` or
|
||||
`viewVector` does not trace again: it runs `imageTrace.setView`. The `PluginItem`, `TracingObject`
|
||||
and `TracingOptions` follow the new object, and a run traces again at most 10,000 times. `threshold` takes a whole
|
||||
and `TracingOptions` follow the new object, and a run traces again at most 10,000 times. Tracing again throws
|
||||
`Cannot retrace a tracing containing added artwork`, with nothing changed, when the tracing holds an object its trace
|
||||
did not make, whether this run, an earlier run or a command added it. `imageTrace.make` records the objects it made in
|
||||
the tracing's `trace` settings as `made`, ranges of ids `[[first, last], ...]`, and a copy of the tracing records
|
||||
their copies. A tracing saved without `made` is checked only for objects added in the same run. `threshold` takes a whole
|
||||
number from 0 to 255, `maxColors` from 2 to 256 and `minArea` (the Noise setting, in pixels) from 0 to the largest
|
||||
image the tracer reads; `fills` and `strokes` cannot both be `false`; `palette` is `""` (automatic), `"Limited"`,
|
||||
`"Full Tone"` or `"Document Library"`; `viewRaster` and `viewVector` take only the pairs that match an Image Trace
|
||||
|
||||
Reference in new issue
Block a user