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

Scripting Pre-Release Heads-Up: TextDocument might have changed unexpectedly

Community Beginner ,
Nov 08, 2023 Nov 08, 2023

Copy link to clipboard

Copied

Hi:

 

We have been working diligently to add significant new capability to the TextDocument and, although we have not exposed any of the new APIs to you yet, in preparation for this we have changed a significant bit of the underlying architecture which TextDocument is built upon. These changes went into ae-beta/24.2.0/8.

 

Quite a lot of automated testing has been written to demonstrate that the existing TextDocument APIs behave exactly as before (and I mean exactly...), but errors may have slipped past us.

 

Consider this a heads up that we might have broken something and to please let us know if you encounter any regression when using the TextDocument - we really need to know.

 

Thanks in advance for your engagement, and we look forward to exposing these new APIs as soon as we can - we are confident they will be well received.

 

Douglas Waterfall

After Effects Engineering

 

 

 

TOPICS
Feedback

Views

347

Translate

Translate

Report

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 ,
Nov 08, 2023 Nov 08, 2023

Copy link to clipboard

Copied

Thanks for the heads-up. Is it possible any of the new TextDocument code has already found its way into the x5 and x6 releases? A number of our text-based scripts (including TypeMonkey, which has been working fine for 10 years now) no longer work, apparently due to an issue with sourceRectAtTime() unexpectedly (but not consistently) returning a width of zero for a new text layer. 

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 08, 2023 Nov 08, 2023

Copy link to clipboard

Copied

Hi Dan:

 

The TextDocument changes ONLY first appeared in 8.

If you are seeing sourceRectAtTime() issues prior to that release then it is unrelated to this particular change.

 

Douglas Waterfall

After Effects Engineering

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

@Dan Ebberts it is sounding like the underlying text is not composed sometimes. Perhaps that explains the race condition. I will investigate this.

 

Douglas Waterfall

After Effects Engineering

Votes

Translate

Translate

Report

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 ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

Thanks for looking into this. It does seem to be a race condition of some sort. In my testing, sometimes it will fail a few consecutive times, but then it will work a bunch of times. I can't figure out what it is about TypeMonkey though, that causes it to fail 100% of the time (not always on the first word though).

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 11, 2023 Nov 11, 2023

Copy link to clipboard

Copied

@Dan Ebberts, a proposed fix will be available in ae-beta 24.2.0/11

 

Douglas Waterfall

After Effects Engineering

Votes

Translate

Translate

Report

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 ,
Nov 15, 2023 Nov 15, 2023

Copy link to clipboard

Copied

I just tested with 24.2.0/14 and the problem seems to be resolved. Thanks!

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 15, 2023 Nov 15, 2023

Copy link to clipboard

Copied

Thank you for passing that on.

 

Douglas Waterfall

After Effects Engineering

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 20, 2023 Nov 20, 2023

Copy link to clipboard

Copied

LATEST

Now we can talk about why we were messing with the architeccture.

 

https://community.adobe.com/t5/after-effects-beta-discussions/per-character-scripting-public-beta-an...

 

Douglas Waterfall

After Effects Engineering

Votes

Translate

Translate

Report

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
Resources