Created
December 23, 2015 15:25
-
-
Save lm913/b732c10f91f6fb10a724 to your computer and use it in GitHub Desktop.
Creates a New Path within a pre-preprocessing script
This file contains hidden or 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
function psNewPath(pathName){ | |
var doc = activeDocument; | |
try{ | |
doc.pathItems.add(pathName, new Array()); //variable must be string | |
} | |
catch(e){ | |
doc.pathItems.add(pathName+" 001", new Array()); //variable must be string | |
} | |
doc.pathItems.getByName(pathName).deselect(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment