Scripts: a document opened from a linked file stays read-only when its path changes

The gate now records each path a script's command reads only because it led
to a file the open documents link to. A document whose file is such a path is
taken out of the open documents' files for the rest of the run, without
looking at where the path leads now or what the script may read now. Before,
the gate decided that again for each command from the path's current target,
so a path pointed at another file by a link, or a read grant given later,
let the run read and write through the document.
This commit is contained in:
dotCooCoo
2026-11-21 01:32:08 -08:00
parent 9758ece7ef
commit bab25d0248
4 changed files with 135 additions and 24 deletions
+3 -1
View File
@@ -3023,7 +3023,9 @@ VectorCraft writes files by these rules of its own:
Such a command also reads, and does not write, the files that the documents open when the run began link to
(linked images, placed files, the plate files of a DCS image and the images their data sets name), so an export,
save, print or package of them includes the linked art. A document the script opens from such a file is not
saved over it. The files are taken as those links led at the run's
saved over it for the rest of the run, also after the script is allowed to read that file's folder, and when its
path leads to another file later, the document does not let the script read or write that file. The files are
taken as those links led at the run's
first `vc.run`, and a path that leads to another file since is refused. A link the script adds or points
elsewhere, and a document it opens, does not let it read any file it could not read before. The automation
read roots still apply.