Copy link to clipboard
Copied
There is a way to suppress these windows
Via script?
Try this...
// Maxim
Maxin(150);
function Maxin(radius){
var desc1 = new ActionDescriptor();
desc1.putUnitDouble(charIDToTypeID('Rds '), charIDToTypeID('#Pxl'), radius);
desc1.putEnumerated(stringIDToTypeID('preserveShape'), stringIDToTypeID('preserveShape'), stringIDToTypeID('squareness'));
executeAction(stringIDToTypeID('maximum'), desc1, DialogModes.NO);
};
Copy link to clipboard
Copied
Is this filter executed from script?
Copy link to clipboard
Copied
I created an action and converted it to .jsx
This below and an example of a more complex script
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
function Azione8() {
function step1(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
executeAction(sTID('copyToLayer'), undefined, dialogMode);
};
// Maxim
function step2(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
var desc1 = new ActionDescriptor();
desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 150);
desc1.putEnumerated(sTID("preserveShape"), sTID("preserveShape"), sTID("squareness"));
executeAction(sTID('maximum'), desc1, dialogMode);
};
step1();
step2();
};
Azione8.main = function () {
Azione8();
};
Azione8.main();
Copy link to clipboard
Copied
Can you try change
step1();
step2();
into:
step1(true,true);
step2(true,true);
?
Copy link to clipboard
Copied
Unfortunately it does not go.
Copy link to clipboard
Copied
Try this...
// Maxim
Maxin(150);
function Maxin(radius){
var desc1 = new ActionDescriptor();
desc1.putUnitDouble(charIDToTypeID('Rds '), charIDToTypeID('#Pxl'), radius);
desc1.putEnumerated(stringIDToTypeID('preserveShape'), stringIDToTypeID('preserveShape'), stringIDToTypeID('squareness'));
executeAction(stringIDToTypeID('maximum'), desc1, DialogModes.NO);
};
Copy link to clipboard
Copied
SuperMerlin is a genius
I love you