Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dashes by script

Engaged ,
Jun 26, 2023 Jun 26, 2023

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?

 

TOPICS
Scripting
576
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jun 26, 2023 Jun 26, 2023

It looks like .canSetExpression is what I need.

It is true when visible and false when hidden. 

Translate
Engaged ,
Jun 26, 2023 Jun 26, 2023

It looks like .canSetExpression is what I need.

It is true when visible and false when hidden. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 26, 2023 Jun 26, 2023
LATEST

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines