Answered
script : how to confirm that the pathitem is a dashed line?
Hi everyone,
my requirement is to delete pathitems that is dashed line, but how do I determine if an item is dashed ? thanks
Hi everyone,
my requirement is to delete pathitems that is dashed line, but how do I determine if an item is dashed ? thanks
try {
alert(String(app.activeDocument.selection[0].strokeDashes.length > 0));
}catch(e) {
//Do nothing, invalid object selected
}Here is some code that will alert “true” if the first selected object has a dashed stroke and “false” if the stroke is not dashed.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.