• Editor
  • After Effects and Photoshop export script for Spine

Related Discussions
...

I meant, for now, I don't have plans to add multi-animation output to my scripts, but there are any number of things you could do! I was suggesting you export multiple JSON files, load them all in as separate skeletons in Spine, and copy-paste the animations onto one skeleton for use in your game. Just one possibility. Of course, you could edit the JSON files in a text editor or using a script, etc. etc. Lots of work-arounds. (Any more about this specifically here would be drifting off-topic, but you're welcome to PM or email me)

I tried to copy-paste an animation like you suggested but nothing happened. Editing the JSON file is too complicated to my fellow artists.

Nimai, can you help supporting this feature in your script, please? I would appreciate it very much.

14 days later

Hello Nimai, thank you for making the script and letting us use it.

I am trying to test it, but I do get this error "unable to execute script at line 443. Not well-formed (invalid token"

On AE CC 2014. I tried to export just one png layer where I made it follow a path. No luck. Then I just tried to export two png with no key frames.

Am I missing something?

Thank you.

Hey! I'll PM you. Maybe we can figure out what could be going wrong.

Sorry I'm late to the party! These scripts are super cool, thanks for sharing them! 🙂

3 months later

Updated the ae_to_spine.jsx script to export "blend" (normal, additive, multiply, screen) instead of "additive".
This will require use of Spine v2.1.26 or later.

Enjoy!

20 days later

Hi there,
just wondered if any-one might have similar issues with the script,

"unable to execute script at line 449. Not well formed (invalid token)"

It seems to happen with any animation in After Effects CC.
Thanks for any help 🙂
Lee

3 months later

Can we export an animation from spine to after effects ???
Vise versa
Please answer

noor3, you can export a PNG sequence and import into After Effects.

6 months later

I'm new to Spine and have been searching for a walk-thru of exporting After Effects animations to Spine. Can someone point me in the right direction?

I've had success using the Photoshop script but I'm not sure what I'm exporting exactly from After Effects. Trying the same procedure gives me the error "Unable to execute script at line 15. File or folder does not exist"

Thanks!

17 days later

Hey everyone,

I'm having the same problem as few others have. Keep getting the "unable to execute script at line 418. Not well-formed (invalid token)" error.
I placed the "lib" folder with everything in it and the jsx file into my after effects folder (witch is CC 2015) as suggested, but then the error appears.
Can anyone explain what I might be doing wrong?

Thanks,
Kaupo

Sorry for the late reply; I've been traveling.
What's the Version number at the top of the ae_to_spine.jsx file? (I've got 44)
What version of After Effects? (I'm using After Effects CC 2015.0 Version 13.5.0.347)

Hi Nimai,

I have version version 45.
I have After Effects CC 2015 13.7.0.124

I'm afraid I do not have an explanation for the "Not well formed (invalid token)" issues.
I checked the file to see if there were any weird non printable characters or non-UTF8 characters but I didn't find anything. One more thing I should have asked: What operating system are you using when you get this error?

Hi,

I'm using windows 10.
Can you tell me the step-by-step instructions on how to install this plug-in.

Kaupo

I should try this on a Windows machine, but I believe the steps are:

  • Copy the ae_to_spine.jsx file to the "Scripts" directory under "Adobe After Effects CC 2014" (or 2015, etc.)
  • Copy the "lib" directory to the "Scripts" directory as well

In After Effects, click File | Scripts | Run Script File...
Navigate to that "Scripts" directory and open ae_to_spine.jsx
Click [Export] on the UI that appears.

After clicking open in after effects run script window, I get the error i mentioned before "Unable to execute script at line 418. Not well-formed (invalid token)
And when i oped the adobe extendscript toolkit and ran debug, the same error came first and many other followed, so it's not just the 418 line that has a bug.

I've got to say Thank You for introducing me to Adobe ExtendScript Toolkit! I had no idea there was an interactive debugger. Wonderful!

However, I get no such error as you report.

Additionally, I have spent at least an hour using Google to search for "Not well-formed (invalid token)" as it pertains to Adobe Scripting, and have not found anything useful. It does appear that most people who report such a problem are running Windows, and the script works for others. So I feel there's something environmental causing your issue here, not a bug in the syntax of the script.

I do not have access yet to a Windows environment to do any testing there.
Has anyone out there used this script successfully in Windows After Effects?

Hi Nimai!
I am using windows10 and using AE2014CC, before my language is set chinese, so run the script is failed, then I am set the language is English, now export the .Json file, I am use spine and LoadData the json is success, but i dont know that images are where?What can I to do?

I just want have a tutorial, like step-by-step instructions on how use AE and export images, thank you.