Skip to main content
dbDavideBoscolo
Legend
June 26, 2023
Answered

Dashes by script

  • June 26, 2023
  • 1 reply
  • 642 views

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?

 

This topic has been closed for replies.
Correct answer dbDavideBoscolo

It looks like .canSetExpression is what I need.

It is true when visible and false when hidden. 

1 reply

dbDavideBoscolo
dbDavideBoscoloAuthorCorrect answer
Legend
June 26, 2023

It looks like .canSetExpression is what I need.

It is true when visible and false when hidden. 

Mathias Moehl
Community Expert
Community Expert
June 26, 2023

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.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects