-
[Problem] Access multiple JSON files with RegEx and dynamically calculate y-Axis
Dear all,
I am stuck with a problem using Adobe After Effects and RegEx.
I have a multitude of single JSON datasets that I need to load and render. The problem is that the range of values for the y-axis differs from JSON file to JSON file.
E.g. one JSON has a value range from 0 – 500 units; another JSON has a value range from 8000 – 250000 units.Meanwhile, in my template, the y axis is always standardized to 1000 px in height.
Thus, the 0-500 range should fit into it as well as the 8.000-250.000 range.I was thinking about a RegEX that
checks the JSON file
Looks for the MAX value
and distributes the range with 3 axis points (Min, Mid, Max)
so that for the first range it would generate a y-axis with 0, 250, 500
and for the second one a y axis with 0, 125.000,250.000Can anyone help on this?
Thx in advance and happy holidays
Tom