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

Import triggers blocking warning "The structure of the data file for the layer "xx" has changed"

Community Beginner ,
Jun 05, 2024 Jun 05, 2024

Copy link to clipboard

Copied

In scripts, when importing a project with a JSON data file asset, , 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

The dialog triggers regardless of the file not having changed since saving and furthermore it halts all scripting as the dialog does not respect app.suppressDialogs(), even from aerender.exe.

 

Also see:
https://community.adobe.com/t5/after-effects-discussions/mute-ae-warning-about-json-structure-changi...

 
Bug Acknowledged
TOPICS
Scripting

Views

69

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

correct answers 1 Pinned Reply

Adobe Employee , Jun 05, 2024 Jun 05, 2024

Thanks for reporting this and linking over to the other bug. I've created a bug internally to further discuss why we have this dialog and if we can get rid of it.

Status Acknowledged

Votes

Translate

Translate
5 Comments
Adobe Employee ,
Jun 05, 2024 Jun 05, 2024

Copy link to clipboard

Copied

Thanks for reporting this and linking over to the other bug. I've created a bug internally to further discuss why we have this dialog and if we can get rid of it.

Status Acknowledged

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jun 05, 2024 Jun 05, 2024

Copy link to clipboard

Copied

I'm looking at this issue right now.

Votes

Translate

Translate

Report

Report
Community Beginner ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

Please do not hesitate to reach out if you have problems reproducing the error

Votes

Translate

Translate

Report

Report
Community Beginner ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

For anyone concerned - the workaround for this is to _only_ have the json as footage in your project, and _not_ add it as a layer anywhere. This avoids triggering the parsing for the properties tree that show up when JSON is presented as a layer.
However this means that you have to reference your JSON from footage rather than pickwhipping from the properties tree of a JSON layer.

var brands = footage("brands.json").sourceData;
brands[whatBrand+1].name;

If you want to export as a mogrt or reduce your project, you will need to include the layer in your comp, or the json file will be omitted from the mogrt.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

LATEST

There is a change going out with the 24.6x21 BETA later today that will remove the warning dialog. Hopefully that'll help with this situation. 

Votes

Translate

Translate

Report

Report