how to import json file ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatobanana

i make animation using spriter program, then export animation as json file.
can i import animation (json format) in animationplayer(godot)?
if can, how?

:bust_in_silhouette: Reply From: nonunknown

Yes you can, but you need to know:

  • How to make a plugin
  • AnimationPlayer and Animation Class in the docs
  • File Class in the docs
  • Get JSON data from file

Based on JSON data create instances of Animation Class and insert into AnimationPlayer