Answered
Script to apply clipping path-detect edges to selected image
I'm looking for a simple script to apply clipping path>detect edges to whatever image is selected. I'm a bit new to scripting, any ideas?
I'm looking for a simple script to apply clipping path>detect edges to whatever image is selected. I'm a bit new to scripting, any ideas?
Something like this:
try {
var sel = app.selection[0];
if (sel.graphics.length) {
sel.graphics[0].clippingPath.clippingType = ClippingPathType.DETECT_EDGES;
}
else {
sel.clippingPath.clippingType = ClippingPathType.DETECT_EDGES;
}
} catch(e) {
//alert(e);
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.