Skip to main content
Known Participant
July 24, 2023
Answered

data-driven animation

  • July 24, 2023
  • 2 replies
  • 511 views

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

 

This topic has been closed for replies.
Correct answer Mylenium

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

2 replies

Mathias Moehl
Community Expert
Community Expert
July 24, 2023

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
HrachMAuthor
Known Participant
July 31, 2023

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?

Mylenium
MyleniumCorrect answer
Legend
July 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

HrachMAuthor
Known Participant
July 31, 2023

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?