SnapSVG-Animator icon indicating copy to clipboard operation
SnapSVG-Animator copied to clipboard

Huge JSON output: Command being written for every frame?

Open JonCognioDigital opened this issue 8 years ago • 3 comments

Hi,

Maybe I'm doing something wrong but I'm using the plugin for the first time and I'm getting a JSON output with 145 commands even though I only have 2 keyframes.

I have posted a question with a few more details on Stack Overflow just in case somebody outside of this project could help...

http://stackoverflow.com/questions/35727635/adobe-animate-snap-svg-plugin-huge-files

Is this a problem with the plugin or is this just how it works?

JonCognioDigital avatar Mar 01 '16 16:03 JonCognioDigital

Hi @jon64digital it should not be doing that. Would it be possible for you to share the .fla producing this so we can take a better look? You can e-mail it to gammon (at) adobe.com.

cjgammon avatar Mar 01 '16 17:03 cjgammon

After thinking about it, this may be what's supposed to be happening. The commands are when flash tells the JS to do something, so if you have a lot of elements being drawn and a complex stage, like 145, you would need 145 commands in the JSON to add those to the stage initially. It's hard to say if it's correct without seeing the .fla and it's output.

cjgammon avatar Mar 01 '16 18:03 cjgammon

After getting more info the root of this is about optimizing the output so that it's more similar to scripted output, rather than json of frame by frame animation.

Ideally I this would come back in the form of GSAP's TimelineMax with a bunch of nested tweens and calls that a developer can then manipulate or add their own scripts to.

cjgammon avatar Mar 02 '16 15:03 cjgammon