• Editor
  • Trim option in Photoshop Script requested

Related Discussions
...

Neat, really neat, Nate! Thanks for being that fast with all of the changes - It's really awesome! :rock:

I tried it a couple of times, and the only thing a came across, was when the JSON and the images are separated into different folders, the image links breaks. When i enter the paths into the script, should it be able to pass on the image path into the JSON file, so i don't have to do a "Search and replace" in spine to update it?

Another thing; my character has 3 mouth images / regions and when i import it into spine, every mouth image gets it own separate slot - and when i want to move the 3 images into one slot for animation purposes, they lose the coordinates, so i manually have to repostition it, which can be a bit of a timeconsumer. 😢
Is there some feature i overlook? I don't think the skin feature is suitable for these small changes, am i right?

Once again, thank you for taking the time to help optimize the script for our need! :clap:

Okay, your new revision unfortunately created a couple of issues 😢

  1. The PNG scale feature is broken. It doesn't scale images at all, no matter which scale i set it to.

  2. The Script don't remember my previous PNG scale preferences, so i have to re-enter the scale factor, each time i run the script.

  3. The Output directories is creating the folders is it should, but all the images are being exported to the directory of the JSON.

Fixed!

Neat! Export works again as it should, but it creates an invalid JSON file.
When i try to import the data, i get following error:
[attachment=1]zUv5ckS[1].png[/attachment]

Edit:
I attached the JSON file, if you need to examine it.
carnie_barnie_spine.json

It imports into 2.0.21, which should be released today. You might be able to change the first line:

// Change first line from:
{"skeleton":{"images":""},
// To:
{

is the AI script supposed to have a GUI and JSON file too? I just get an automatic export of all layers

why scripts dont upadate with new Spine version?


Just now update Photoshop script and try it (Photoshop cc last version). Spine get error in Json file when import data.


new script - begin JSON

{"skeleton":{"images":"images/"},
"bones":[{"name":"root"}],
"slots":[
......

Old script -

{"bones":[{"name":"root"}],
"slots":[
........

without skeleton all work fine

Conzeit escreveu

is the AI script supposed to have a GUI and JSON file too? I just get an automatic export of all layers

The Illustrator script is currently much simpler and only exports layers. Maybe you could bring your AI images into Photoshop and do the export there?

mfedorov escreveu

why scripts dont upadate with new Spine version?

New Spine version will be up today.

Wonderful, Nate! It works like a charm! :rock:

Bendsen escreveu

Another thing; my character has 3 mouth images / regions and when i import it into spine, every mouth image gets it own separate slot - and when i want to move the 3 images into one slot for animation purposes, they lose the coordinates, so i manually have to repostition it, which can be a bit of a timeconsumer. 😢
Is there some feature i overlook? I don't think the skin feature is suitable for these small changes, am i right?

Did you have any thoughts on the qoute above?
Would it be possible to name a group layer in Photoshop a specific name, which the export script would catch and place the sublayers into one single slot in Spine? :happy:

Wow, I opened this thread and didn't have to make another change to the damned LayersToPng script! Amazing! 😃

When you move an image from one slot to another it should not lose its position. What are the exact steps you are taking?

Nate escreveu

Wow, I opened this thread and didn't have to make another change to the damned LayersToPng script! Amazing! 😃

Haha - I could imagine you were getting fed up with all the bugs, so i decided to give you some slack 😉

Nate escreveu

When you move an image from one slot to another it should not lose its position. What are the exact steps you are taking?

Hmm. This is quite odd - and wonderful at the same time. When i try to recreate the scenario, the repostioned image actually acts as it should :o Did you change something? Nevertheless, it works - and it made my day :clap:

Hello there,
I don't know if this is the right place to be posting this but, when we import the JSON from Photoshop (Layer to PNG Script) so the character's PNGs stay in the same position, wouldn't it be smart to make Spine add Joints above the Slots instead of just Slots above the Images? I don't know much about programming so just say if this is complicated.

Cheers!

NMF escreveu

Hello there,
I don't know if this is the right place to be posting this but, when we import the JSON from Photoshop (Layer to PNG Script) so the character's PNGs stay in the same position, wouldn't it be smart to make Spine add Joints above the Slots instead of just Slots above the Images? I don't know much about programming so just say if this is complicated.

Cheers!

We would need to find a way to define how bones (joints) should be added in Photoshop. Doing it in Photoshop however would not be faster than doing it inside of Spine. With the Create tool active you can hold control to select the attachment you want to be parented to the bone you create, this makes it quite fast to place attachments (slots) under the correct bones.