mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 10:51:11 +01:00
Scripts: doScript keeps the run's artboard picks and a batch's artboard
- The Artboard tool's selection as script.run starts is kept for the steps app.doScript plays: the run gives the tool fresh state, which dropped it, so a paste or Fit to Artwork Bounds step acted on the active artboard only. - A step of a command.batch step that names its artboard acts on that artboard, past the last one the last, as command.batch gives it. - The app leaves out every action of a set that shares a name with an action it cannot pass, so that name is never one a script can play. - The host name check lists doScript, loadAction and unloadAction.
This commit is contained in:
1 parent
59facefcd2
commit
fdad498dbc
6 files changed
+174
-24
No files matched your search
+6
-4
@@ -2689,10 +2689,12 @@ app through the global object `vc`, and writes to the Script Console and runs ot
|
||||
Distribute Spacing to the artboard, Select › All on Active Artboard, Edit Symbol, Fit to Artwork Bounds and Fit to
|
||||
Selected Art) and does not name one acts on the active document's active artboard, by the index it had as the run
|
||||
started, which the view keeps: after the script deletes artboards, the artboard now at that index, or the last one
|
||||
past the end. While the Artboard tool has several artboards selected, a paste step and a Fit to Artwork Bounds step
|
||||
act on those instead, as in the panel's playback. VectorCraft's own rules: the action and its set are matched by
|
||||
their exact names, and a name that matches no action or more than one throws an error before any step runs, as does
|
||||
an action with no included step. A stop, and a step whose command a script may not run or the engine does not have
|
||||
past the end. While the Artboard tool has several artboards selected as the run starts, a paste step and a Fit to
|
||||
Artwork Bounds step act on those instead, as in the panel's playback. A step of a recorded `command.batch` step that
|
||||
names its `artboard` acts on that artboard, or the last one past the end, as `command.batch` gives it. VectorCraft's
|
||||
own rules: the action and its set are matched by their exact names, and a name that matches no action or more than
|
||||
one throws an error before any step runs, as does an action with no included step. When the app leaves an action
|
||||
out of `actions`, it also leaves out every other action of that set with the same name. A stop, and a step whose command a script may not run or the engine does not have
|
||||
(a View menu step, or a step that plays an action or runs a script), throw an error that names the step before any
|
||||
step runs, as does such a command among the commands a Batch step (`action.batch`) plays on each file, so an
|
||||
action cannot play itself.
|
||||
|
||||
Reference in new issue
Block a user