Skip to main content
Legend
July 31, 2018
Question

Mute AE warning about JSON structure changing?

  • July 31, 2018
  • 2 replies
  • 1246 views

Hi There,

In my script, a JSON object is written to a file that is, itself, imported into AE as footage.  If the structure of the JSON written to the file changes, AE throws a modal warning dialog with the following message:

After Effects warning: The structure of the data file for the layer "scores.json" has changed

Is there any way to disable that error either via scripting or via AE's preferences?  I tried placing code that writes to the JSON file in between the statements  app.suppressDialogs() and app.endSuppressDialogs() but that did not seem to work.  Is it possible to mute it or possible work-arounds so that if the JSON changes structure that error does NOT display?

Thanks!

This topic has been closed for replies.

2 replies

Participant
June 5, 2024

Hi there - this is a showstopper for us, as the dialog it triggers when importing a project with a JSON asset, even though the asset has not changed since saving. The dialog does not respect app.suppressDialogs(), and halts all scripting, even pops up from aerender.exe.

Tom Olsen
Community Manager
Community Manager
June 5, 2024

Thanks for the feedback. Working on it now.

Legend
August 6, 2018

Just wanted to note that there is a topic about this on the user voice forum for After Effects.  Read the topic and upvote for it