Known Participant
March 3, 2022
Answered
Looking for solution to error "type error: cannot read property 0 of null".
- March 3, 2022
- 2 replies
- 972 views
I am getting the error "type error: cannot read property 0 of null" in the following expression (for Source Text property):
eval("var dateRange="+footage("WK_2022-2.json").sourceText);
dateRange[5,0].D1;I am getting the same error (for "property 1") with this code:
eval("var wkUser="+footage("WK_2022-2.json").sourceText);
user=wkUser[0,1].D1;
min=0;
max=2500;
max_movement=-800;
newBaseline=874;
myYheight=((user-min)/max)*max_movement+newBaseline;
[value[0],myYheight]It appears that AE is not recognizing the JSON file.
The file WK_2022-2.json exists; it and the project file are in the same folder. The JSON file is in the project.
I've attached the JSON file for reference.
What's really frustrating is that I've had it working, and then it stops.
Version: AE 22.2.0 (Build 120)
