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

data-driven animation

Explorer ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

Why isn't it working, I'm doing it right the way that is guided in helpx.adobe.com

 

Screenshot 2023-07-24 at 19.49.57.png

TOPICS
Expressions , Scripting

Views

301

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 Correct answer

LEGEND , Jul 24, 2023 Jul 24, 2023

Have you actually tried to address a specific entry with [0] or such? Otherwise this coudl simply be a formatting error in the data. anyway, without better info on the actual structure of your data and how it's used and generated nobody can tell you much. Just throwing out such generic questions isn't that useful.

 

Mylenium

Votes

Translate

Translate
LEGEND ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

Have you actually tried to address a specific entry with [0] or such? Otherwise this coudl simply be a formatting error in the data. anyway, without better info on the actual structure of your data and how it's used and generated nobody can tell you much. Just throwing out such generic questions isn't that useful.

 

Mylenium

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
Explorer ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

LATEST

I also thought the error would be in the expression, though everything was written correctly. But the problem was in the data, where some object property was 2, but in the code, there was a switch for only 0 and 1 cases, but not for 2's case. But logically the error should appear at the line where the switch case was written, not the line, where the data is assigned to a variable and everything is ok, the problem actually occurs later. Shouldn't it?

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 ,
Jul 24, 2023 Jul 24, 2023

Copy link to clipboard

Copied

The first line looks good to me at first sight. Do you happen to have the old Legacy ExtendScript engine enabled for expressions in the Ae preferences? That engine definitly cannot handle the "let" statement in the second line.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

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
Explorer ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

I also thought the error would be in the expression, though everything was written correctly. But the problem was in the data, where some object property was 2, but in the code, there was a switch for only 0 and 1 cases, but not for 2 case. But logically the error should appear at the line where the switch case was written, not the line, where the data is assigned to a variable and everything is ok, the problem actually occurs later. Shouldn't it?

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