Created
May 21, 2020 20:02
-
-
Save heLomaN/0b62b2c6990571c13641752d44cc5b93 to your computer and use it in GitHub Desktop.
A simple photoshop script could convert cartoon image to wired draft.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// cartoon image to wired draft | |
/// ref: https://www.adobe.com/devnet/photoshop/scripting.html | |
function wired_filter() { | |
var doc = app.activeDocument; | |
while(doc.artLayers.length > 1) { | |
doc.activeLayer.remove() | |
} | |
doc.activeLayer.copy() | |
doc.paste(); | |
doc.activeLayer.desaturate() | |
doc.activeLayer.copy() | |
doc.paste(); | |
doc.activeLayer.invert() | |
doc.activeLayer.blendMode = BlendMode.COLORDODGE | |
doc.activeLayer.applyMinimum(2) | |
} | |
wired_filter() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment