Skip to main content
Participant
November 8, 2023
Question

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

  • November 8, 2023
  • 2 replies
  • 665 views

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

 

 

 

This topic has been closed for replies.

2 replies

Adobe Employee
November 21, 2023

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-announcement/td-p/14247138

 

Douglas Waterfall

After Effects Engineering

Dan Ebberts
Community Expert
Community Expert
November 8, 2023

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. 

Adobe Employee
November 8, 2023

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