Skip to content

Commit

Permalink
upd Clear default effects
Browse files Browse the repository at this point in the history
  • Loading branch information
pchiorean committed Sep 29, 2021
1 parent e98a190 commit 06f2e5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup/DocCleanup.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Doc cleanup v2.8.1 (2021-09-16)
Doc cleanup v2.9 (2021-09-29)
(c) 2020-2021 Paul Chiorean (jpeg@basement.ro)
Changes some settings, cleans up swatches/layers/pages and resets scaling.
Expand Down Expand Up @@ -56,6 +56,13 @@ app.doScript(function () {
ScriptLanguage.JAVASCRIPT, undefined,
UndoModes.ENTIRE_SCRIPT, 'Unlock items, delete hidden, reset scaling');

// Clear default effects
app.doScript(function () {
if ((menu = app.menuActions.item('$ID/Clear All Transparency')).enabled) menu.invoke();
},
ScriptLanguage.JAVASCRIPT, undefined,
UndoModes.ENTIRE_SCRIPT, 'Clear default effects');

// Delete unused layers
app.doScript(function () {
if ((menu = app.menuActions.item('$ID/Delete Unused Layers')).enabled) menu.invoke();
Expand Down

0 comments on commit 06f2e5c

Please sign in to comment.