javascript

AI Script – Sort Layers Alphabetically

Illustrator Script Sort application active document layers alphabetically /*#target illustrator*/ main(); function main(){ if(!documents.length) return; var doc = app.activeDocument; var allLayers = app.activeDocument.layers; var visibleLayers = []; for(a=0; a<allLayers.length; a++){ var ilayer = allLayers[a]; if (ilayer.visible) { visibleLayers.push(ilayer); } }; var alphabetizedLayers = visibleLayers.sort( function(a,b) { return a > b } ); sort_layers(doc, alphabetizedLayers); } […]

AI Script – Sort Layers Alphabetically Read More »

PSD Get Coordinates From Layers And Create .txt File

Export Layer Coordinates – Adobe Photoshop Script Export x and y coordinates to semicolon seperated .txt file //Adobe Photoshop 2022 var doc = app.activeDocument; var curLayer; var coordArray = []; var txtFile=””; var outName = “PSD_Coordinates”; goThroughLayers (doc); //Looping Array Elements for (i = 0; i < coordArray.length; i++) { txtFile += coordArray[i][0] + “;”

PSD Get Coordinates From Layers And Create .txt File Read More »

Shopping Cart