Skip to content

Commit

Permalink
upd Include layers starting with hyphen or dot
Browse files Browse the repository at this point in the history
  • Loading branch information
pchiorean committed Jun 8, 2022
1 parent 820c66f commit 46c84c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion export/PrepareForExport.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Prepare for export 22.5.22
Prepare for export 22.6.8
(c) 2020-2022 Paul Chiorean (jpeg@basement.ro)
Hides some layers and moves objects with special colors to separate spreads.
Expand Down Expand Up @@ -37,6 +37,7 @@ function prepareForExport() {
var i, n, l, variants;
var infoLayer = doc.layers.item('info');
var layerNames = {
hidden: [ '-*', '.*' ],
covered: [ 'covered area*' ],
visible: [ 'visible area', 'rahmen', 'sicht*', '*vi?ib*', 'vis?*' ],
safe: [ 'safety margins', 'safe area', 'segmentation' ],
Expand Down Expand Up @@ -65,6 +66,7 @@ function prepareForExport() {
for (variants in layerNames) {
if (isInArray(l.name, layerNames[variants])) {
switch (layerNames[variants][0]) {
case layerNames.hidden[0]:
case layerNames.covered[0]:
case layerNames.visible[0]:
case layerNames.safe[0]:
Expand Down

0 comments on commit 46c84c9

Please sign in to comment.