Copy link to clipboard
Copied
Hi there,
The Dashes property group in a Gradient Stroke or Stroke has 7 child properties: 3 dashes, 3 gaps and 1 offset. They always have 7 even when you are not using them.
I'm trying to understand how to know if these properties are actually 'dormant' or actively modifying the stroke (that is if they are also visible in the Dashes group).
If I check if they are .active they always are.
If I check if they are .enabled they always are.
If I check if they are .elided they are not.
If I check if they have a value they always have one.
So how the hell do I know if they are or are not taken into account?
It looks like .canSetExpression is what I need.
It is true when visible and false when hidden.
Copy link to clipboard
Copied
It looks like .canSetExpression is what I need.
It is true when visible and false when hidden.
Copy link to clipboard
Copied
Thank you for sharing your solution! This sounds in deed like a clever workaround, since there is no property to check directly if a property is visible, I think.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now