No offense meant, but what some call a hassle is a walk in the park for orhers
In my case, creating the animation out of code is the better to maintain and simplier to set-up way to do it.
I don't see how it wouldn't be a hassle. If I want to add in an animation inside of the editor, I simply create one, specify the loop & delay values, then click on the import animation button to import all of the animations with the same name & a prefix number attached to them.
You are forgetting that you can also assign sounds & action parts/scripts to each individual animation frame as well as custom pause values for each frame & offset values & the direction the animation should play & whether or not it should play in order or randomly or have a random loop value between each loop (good for environment animations such as bird flying across the screen every so often, etc). So many things to declare for animations. It's overkill nonsense & like I said, Lua is not the fastest scripting/programming language out there & I'm not talking about the time it takes you to write a script but the time it takes to read & iterate through scripts.
While I like the fact that you are willing to script, I really don't recommend using it for everything as it will eating into system resources & RAM which would be better utilized for the already heavy 2D animations. 2D games can easily become much more system hungry than 3D; especially with full hd plus games & large animations.