Duplicate Selected Layer into Selected Layer Sets – Photoshop Script

Recently I had needed to duplicate single smart object layer into 100s of Layer Sets. So I decided to write a script for it, enjoy... // Duplicate Selected Layer which is not under Layer Set to Selected Layer Sets (Mehmet Sensoy) #target photoshop var scriptName = "Duplicate Layer into Selected Layer Groups"; var scriptVersion = [...]

Set Script Playback Accelerated or Step by Step – Photoshop Scripting

Sometimes you might need to change script playback type to step by step or accelerated (default) . Here are two functions; // Step by Step Playback function setActionToStep(){ var idsetd = charIDToTypeID( "setd" ); var desc1 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref1 = new ActionReference(); var idPrpr = charIDToTypeID( "Prpr" [...]

Rasterize Layer and Rasterize Layer Styles Photoshop Scripting Code Snippet

Rasterize Layer & Rasterize Layer Styles Photoshop Scripting Code Snippets Rasterize Layer // Rasterize Layer #target photoshop cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; function rasterizeLayer() { var desc1 = new ActionDescriptor(); var ref1 = new ActionReference(); ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1); executeAction(sTID('rasterizeLayer'), desc1, DialogModes.NO); }; rasterizeLayer(); Rasterize [...]

Batch Merge Groups into Layers – Photoshop Script

This script merges all selected layer groups into flatten layers. Layer Sets should be visible // Layer Sets should be visible // This script merges all selected layer groups into flatten layers. #target photoshop cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; var doc = app.activeDocument; var resultLayers=[]; function [...]

Photoshop Script – Select Multiple Layers with Array of Defined Names

#target photoshop cTID = function(s) {return app.charIDToTypeID(s);}; sTID = function(s) {return app.stringIDToTypeID(s);}; var layernames = ["Sliced+1","Sliced+2","Sliced+3","Sliced+4","Sliced+5"]; // Array of Layer Names if(app.documents.length>0){ var doc = app.activeDocument; Deselect_Layers(); var myLyr = doc.artLayers; for (var i = 0; i < layernames.length; i++) { addtoSelection(layernames[i]); } } function Deselect_Layers() { var desc1 = new ActionDescriptor(); var ref1 = [...]

Photoshop Script – Deselect Layers

Photoshop Script - Deselect Layers #target photoshop cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; function Deselect_Layers() { var desc1 = new ActionDescriptor(); var ref1 = new ActionReference(); ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt')); desc1.putReference(cTID('null'), ref1); executeAction(sTID('selectNoLayers'), desc1, DialogModes.NO); };

Batch Clear Smart Filters from Selected Layers – Photoshop Script

Have you ever tried clearing smart filters from multiple selected layers? Unfortunately there is no command for that so I decided to write a script…

ExtendScript Filling a Shape Layer

Simple colorpicker example which fills active shape layer with choosen color…

Color Parser Class – Extendscript

Really useful color parser Extendscript class by Stoyan Stefanov…

Acting on Selected Objects – Photoshop Scripting

Acting on Selected Objects – Photoshop Scripting…