-
Unity 3D + After Effects .JSON file with position over time
Hey everyone!
I’m creating vídeos for mobile games and I record all the scenes on Unity 3D. I use a PS5 controller to play and Unity records the X and Y position of my analogic stick on a .json file (30 FPS – The information is record 30 times every second / Position interval of -1 and 1, being 0 the center of the stick and -1 and 1 the left, right, top and bottom max position of the stick) and it looks like this:
[{“x”:0.10917455,”y”:0.0},{“x”:0.1479061,”y”:0.0},{“x”:0.196320519,”y”:0.0}…with hundreds of lines…
All the game HUD is recreated in after effects because I have to work with different aspect ratios and better animations. I want to parent this position over time value on the .json file to an animated analogic stick I created on after effects.
I’ve been working with after effects over the past 8 years, but never used a .json file. The developer that I’m working with can format the .json anyway I want to, I just wanted to know if there’s a right way to do it, so after effects will be able to read the value and parent it to the position of my analogic stick on after effects.
Thanks!