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

New AE 2025 feature just doesn't work...

Community Beginner ,
Oct 17, 2024 Oct 17, 2024

Hi, I am really excited about the new feature that introduces expressions in the text properties - that seems like a true gamechanger in my workflow. I'm talking about the things that are described right here:

Edit text styles and text properties using expression controls. (adobe.com)

 

Unfortunately it just doesn't work. AE displays an error when trying to apply the simplest feature like setting the new font trough the expression, like this:

text.sourceText.style.setFont("Arial-BoldMT");

 

When I finish editing the expression (unclick) the error says:

After Effects error: A dynamic_cast has failed.

 

I also would like to mention that it worked perfectly even in much more complex expressions in beta release. But using beta version of AE is not a solution for me.

Bug Fixed
TOPICS
Crash , Expressions
5.1K
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 3 Pinned Replies

Adobe Employee , Oct 22, 2024 Oct 22, 2024

Hi @Piotr382425020q7e & @default53dysdjnmuj3,

Thank you for reporting this issue. We've been able to reproduce the error and now have a ticket open for investigation.

 

Thanks again,

- John, After Effects Engineering Team 

Status Investigating
Translate
Adobe Employee , Nov 12, 2024 Nov 12, 2024

There is a fix available now in the AE Beta builds. The fix will also be in the non-Beta release 25.1 when it ships. 

Status Started
Translate
Adobe Employee , Feb 26, 2025 Feb 26, 2025

Hi all,

This issue has been fixed in the 25.1 version of After Effects. Please let us know if you continue to see this error after updating to 25.1 or later.

 

Thanks again for reporting this issue,

- John, After Effects Engineering Team 

Status Fixed
Translate
18 Comments
Adobe Employee ,
Oct 17, 2024 Oct 17, 2024

The type of quotes matter, so try this:

 

text.sourceText.style.setFont(`Arial-BoldMT`);

Status Needs More Info
Translate
Report
Adobe Employee ,
Oct 17, 2024 Oct 17, 2024

Actually 

text.sourceText.style.setFont("Arial-BoldMT");

this worked fine for me in 25.0.  

Translate
Report
Adobe Employee ,
Oct 17, 2024 Oct 17, 2024

Can you share your project with me? 

Translate
Report
Community Beginner ,
Oct 18, 2024 Oct 18, 2024

@jenkmeister 

Okay, so basically it indeed workes a on a blank project, however when I apply this into the project that was converted from 2024 it crashes as above. It doesn't matter what type of quotes I use " or '. It doesn't work either way.

 

For a reminder: it worked perfectly in the beta version.

Where can I upload the file?

Translate
Report
Adobe Employee ,
Oct 18, 2024 Oct 18, 2024

Upload the file wherever you'd like (onedrive, google drive, adobe cc storage, etc.) and share a link. There unfortunatley isn't a place in these forums to update into. 

Translate
Report
New Here ,
Oct 22, 2024 Oct 22, 2024

I'm getting this same error. When I click the warning icon on the layer, it says 'internal error'. Sometimes the dynamic cast popup won't go away and I have to force quit the file.Screenshot 2024-10-22 at 09.33.23.pngexpand imageScreenshot 2024-10-22 at 09.33.47.pngexpand image

Translate
Report
Adobe Employee ,
Oct 22, 2024 Oct 22, 2024

Hi @Piotr382425020q7e & @default53dysdjnmuj3,

Thank you for reporting this issue. We've been able to reproduce the error and now have a ticket open for investigation.

 

Thanks again,

- John, After Effects Engineering Team 

Status Investigating
Translate
Report
Community Beginner ,
Oct 22, 2024 Oct 22, 2024

I've been having a similar issue. Most of my Essential Graphics templates are broken after the update. The text controls are broken in Premiere, and I'm experiencing the "dynamic_cast has failed" popups constantly in After Effects. 

 

However, I'm noticing that all the errors I'm getting are from Text layers that link to a master text layer using the "getStyleAt()" function. I'm guessing the issue has something to do with the Text layers being from the older version before some of the newer expressions were added. 

 

A solution that seems to work for me is to create new Text layers and redo/copy the expressions. While I'd like to not have to go through all of my templates and replace all the layers, I'm at least able to use my templates again. 

Translate
Report
Community Beginner ,
Oct 25, 2024 Oct 25, 2024

Same here, a bunch of my projects experience this issue.

Translate
Report
Engaged ,
Oct 25, 2024 Oct 25, 2024

Don't understand why adobe won't keep the old expression system in the background for old projects, so they won't break?

I hope they understand we are making a living here and servicing clients! They know some templates are being used for years and years. Such a shame 😞

Translate
Report
New Here ,
Oct 28, 2024 Oct 28, 2024

I am facing the same issues: I can't work on one of my projects as the "After Effects error: A dynamic_cast has failed."-popup doesn't go away.

Are there any solutions yet or at least a work-around?

Translate
Report
Adobe Employee ,
Oct 28, 2024 Oct 28, 2024

A fix for the issue was checked in earlier today so that should be in a beta build in a few days from now. We don't yet have a workaround for the current 25.0.1 AE release. 

Translate
Report
Explorer ,
Oct 29, 2024 Oct 29, 2024

Hey there,  I just experienced this serious bug today when opening up an existing project that uses an expression that changes font style.      (  style.setFont  )

sure hope a fix is available soon

Translate
Report
Explorer ,
Nov 12, 2024 Nov 12, 2024

Im having the same problem. For my file an old text layer (one created in a converted file) was the problem. When i made a new one with After Effects 25 it worked.

Translate
Report
Adobe Employee ,
Nov 12, 2024 Nov 12, 2024

There is a fix available now in the AE Beta builds. The fix will also be in the non-Beta release 25.1 when it ships. 

Status Started
Translate
Report
New Here ,
Dec 03, 2024 Dec 03, 2024

I have the same problem. would it be fixed? when? I tried to edit an old project

cheni_770_0-1733227725849.pngexpand image

 

 

Translate
Report
Adobe Employee ,
Dec 03, 2024 Dec 03, 2024

25.1 has begun to rollout to customers around the world and should be available to all customers in the next 48 hours. Please look for the update in Creative Cloud Desktop. 

Translate
Report
Adobe Employee ,
Feb 26, 2025 Feb 26, 2025
LATEST

Hi all,

This issue has been fixed in the 25.1 version of After Effects. Please let us know if you continue to see this error after updating to 25.1 or later.

 

Thanks again for reporting this issue,

- John, After Effects Engineering Team 

Status Fixed
Translate
Report