• Runtimes
  • Gimp to Spine Issues

Related Discussions
...

Hello all,
I am having issues with the Gimp to Spine plugin.
I have googled this issue and searched Spine Forums/Website and I am still having trouble.
Here is what I have tried:
My Gimp Version: (Most Recent Version) 2.10.14
My Computer Type: Mac
—I followed the instructions at spine-scripts/gimp at master · EsotericSoftware/spine-scripts
——Checking Gimp Python: I do have the Filters -> Python-Fu option in my Gimp
——My 2 Plugin Locations (both have green circles when I click on each of them) are:
——Location 1) /Users/[MyMacUsername]/Library/Application Support/GIMP/2.10/plug-ins
————> This folder was completely empty
——Location 2) /Applications/GIMP-2.10.app/Contents/Resources/lib/gimp/2.0/plug-ins
————> This folder had lots of Unix Executables

I downloaded “GimpToSpine.py” from the same link as the instructions above.

For each of the attempts below, I x-ed out of/re-opened Gimp after moving/deleting “GimpToSpine.py”

Attempt 1: “GimpToSpine.py” in Location 1, not in Location 2.
Attempt 2: “GimpToSpine.py” not in Location 1, in Location 2.
Attempt 3: “GimpToSpine.py” in both locations

Unfortunately, none of these attempts work.
The way I know that the attempts do not work is the following:
I do not see “File -> Export to Spine” no matter which attempt I have tried.

I even tried restarting my computer after Attempt 3, but that did not help either.

I was wondering if someone here could let me know what I am doing wrong. Thank you for your help!

Hi! Someone had this same problem in the past, could you check my answer there and see if it applies to you, please?
Gimp to Spine official plugin not working

p.s. I'm on windows while you're on mac, but perhaps the folder structure may still be similar?

Hi Erikari,
Thank you for your reply. I checked out your forum answer you provided.


I used the same gimp-spine instructions link that you provided there


I double-checked and I did save the GimpToSpine.py as a python script in both plug-in folders.


Regarding "Do you have any Python-fu scripts?" (from the forum answer you linked to): I do not understand your question. I am attaching a picture with how Python-Fu appears in Gimp, showing that my only option is “Console” (https://www.dropbox.com/s/3t857xfq3yvdgj7/PythonFu.png?dl=0)


Each of my plugin folders have green dots.
I also attached a picture of my File menu, on the off chance that I actually did get the plugin to work and just don’t understand where it is. (https://www.dropbox.com/s/g6f827ojwsx0rsp/FileMenu.png?dl=0)

Thank you for your help!

From the GIMP wiki https://en.wikibooks.org/wiki/GIMP/Installing_Plugins

System-wide script-fu scripts are stored in /Applications/GIMP.app/Contents/Resources/share/gimp/2.0/scripts/.
Executable and python plugins are located in /Applications/GIMP.app/Contents/Resources/lib/gimp/2.0/plug-ins/

So you want to use the /Applications/GIMP.app/Contents/Resources/lib/gimp/2.0/plug-ins/ folder


Regarding "Do you have any Python-fu scripts?" (from the forum answer you linked to): I do not understand your question. I am attaching a picture with how Python-Fu appears in Gimp, showing that my only option is “Console” (https://www.dropbox.com/s/3t857xfq3yvdgj7/PythonFu.png?dl=0)

When you install GIMP you get the choice of enabling Python support. If you have it enabled, Python-Fu will show up under Filters > Python-Fu. It should only show Console.

If you are still unable to get it working, please take a screenshot of your Preferences > Folders > Plugins window, with the path where you placed GimpToSpine.py selected.

Hi Shiu,
Thank you for your help and for your clarification regarding Python-Fu! That makes sense.
My Gimp application on my computer is actually named “Gimp-2.10”. Thus, when I need to browse inside of it for the link that you recommended, I need to add “-2.10” in between “GIMP” and “.app” (Otherwise, the link won’t work.)
Thus, the link that you are recommending is:

/Applications/GIMP-2.10.app/Contents/Resources/lib/gimp/2.0/plug-ins/

I have tried this location and unfortunately (even after restarting Gimp), Gimp still only has “Export" and "Export As…” but no “Export to Spine”

Here are the screenshots for that folder’s contents. GimpToSpine.py is in “Folder Picture 3 of 5”

Thanks again for your help and if there is any other information I can give you, please let me know.


Hey Shiu,
Also, here are my plugin settings in case they are incorrect.

I'm afraid I don't know why it's not working for you then. Maybe it's a Mac issue. Did you check if any other plugins work for you?
Also, maybe check if the permissions of the Spine plugin is the same as all the other files in that directory.

Thanks, Shiu!
You were right: permissions were the problem.
I had to do

chmod +x GimpToSpine.py

Now, "Export to Spine" appears and I am able to open the exported data in Spine. Thank you for your help!

You're very welcome. I'm happy you were able to solve it!

ein Monat später
MonsterMaker534 schrieb

I've had this same problem (I think), ExportTo Spine not showing up in File menu no matter what I do. I saw this thread and tried changing the permissions manually through the Finder-Get Info, but it didn't work. Would you explain that console command for me as I'm not having luck trying to figure it out!

3 Monate später
4 Monate später

Hi @Søren, @[gelöscht]

I tried using the latest Spine runtimes with the latest Gimp and got this error.

I followed the instructions from here
spine-scripts/gimp at master · EsotericSoftware/spine-scripts

Latest version of GIMP
https://www.gimp.org/

Is there something I'm missing? Thanks for the help! :scared:

Traceback (most recent call last):
  File "C:\Program Files\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 740, in response
    dialog.res = run_script(params)
  File "C:\Program Files\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 361, in run_script
    return apply(function, params)
  File "C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\GimpToSpine\GimpToSpine.py", line 44, in spine_export
    name = os.path.splitext(os.path.basename(img.filename))[0]
  File "C:/Program Files/GIMP 2/lib/python2.7/ntpath.py", line 221, in basename
    return split(p)[1]
  File "C:/Program Files/GIMP 2/lib/python2.7/ntpath.py", line 193, in split
    d, p = splitdrive(p)
  File "C:/Program Files/GIMP 2/lib/python2.7/ntpath.py", line 128, in splitdrive
    if len(p) > 1:
TypeError: object of type 'NoneType' has no len()
ein Jahr später

Hello!

When running the Spine Plugin Export I receive this error message:

What am I supposed to do in this case?

Apparently the function in the script returns a NonType or no value...