Answered
How can I configure a script to run on all selected layers?
I have a script. Those Scripts only affect the layer I selected.
How can I modify these scripts if I want the selected layer to affect two or more layers?
Sample scripts
// Blurmore.jsx
//
//
// Generated Fri May 31 2024 14:44:55 GMT+0630
//
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
//
//==================== Blur more ==============
//
function Blurmore() {
// Gaussian Blur
function step1(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
var desc1 = new ActionDescriptor();
desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 6.4);
executeAction(sTID('gaussianBlur'), desc1, dialogMode);
};
step1(); // Gaussian Blur
};
//=========================================
// Blurmore.main
//=========================================
//
Blurmore.main = function () {
Blurmore();
};
Blurmore.main();
// EOF
"Blurmore.jsx"
// EOF
