Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json export is missing frame numbers #1889

Closed
daisyowl opened this issue Sep 27, 2018 · 5 comments
Closed

json export is missing frame numbers #1889

daisyowl opened this issue Sep 27, 2018 · 5 comments
Assignees
Labels
bug
Milestone

Comments

@daisyowl
Copy link

@daisyowl daisyowl commented Sep 27, 2018

If i export a sprite animation with options including --filename-format '{path}/{title}_{innertag}_{tagframe}.{extension}', the json file saved alongside the .pngs is formatted like this:

(note that the image paths don't contain the frame number of the animation tagged "groove" in the document "jeffFull")

(also the actual json document has the full path in the key, which i stripped out for clarity, but would also like to be able to suppress in the CLI output)

...
   "jeffFull_groove_.ase": {
    "frame": { "x": 1260, "y": 0, "w": 36, "h": 36 },
    "rotated": false,
    "trimmed": false,
    "spriteSourceSize": { "x": 0, "y": 0, "w": 36, "h": 36 },
    "sourceSize": { "w": 36, "h": 36 },
    "duration": 70
   },
   "jeffFull_groove_.ase": {
    "frame": { "x": 1296, "y": 0, "w": 36, "h": 36 },
    "rotated": false,
    "trimmed": false,
    "spriteSourceSize": { "x": 0, "y": 0, "w": 36, "h": 36 },
    "sourceSize": { "w": 36, "h": 36 },
    "duration": 70
   },
   "jeffFull_groove_.ase": {
    "frame": { "x": 1332, "y": 0, "w": 36, "h": 36 },
    "rotated": false,
    "trimmed": false,
    "spriteSourceSize": { "x": 0, "y": 0, "w": 36, "h": 36 },
    "sourceSize": { "w": 36, "h": 36 },
    "duration": 70
   },
   "jeffFull_groove_.ase": {
    "frame": { "x": 1368, "y": 0, "w": 36, "h": 36 },
    "rotated": false,
    "trimmed": false,
    "spriteSourceSize": { "x": 0, "y": 0, "w": 36, "h": 36 },
    "sourceSize": { "w": 36, "h": 36 },
    "duration": 70
   },
   "jeffFull_groove_.ase": {
    "frame": { "x": 1404, "y": 0, "w": 36, "h": 36 },
    "rotated": false,
    "trimmed": false,
    "spriteSourceSize": { "x": 0, "y": 0, "w": 36, "h": 36 },
    "sourceSize": { "w": 36, "h": 36 },
    "duration": 70
   },
   "jeffFull_groove_.ase": {
    "frame": { "x": 1440, "y": 0, "w": 36, "h": 36 },
    "rotated": false,
    "trimmed": false,
    "spriteSourceSize": { "x": 0, "y": 0, "w": 36, "h": 36 },
    "sourceSize": { "w": 36, "h": 36 },
    "duration": 70
   },
...

aseprite 1.2.9x64, win10

@daisyowl
Copy link
Author

@daisyowl daisyowl commented Sep 27, 2018

i should also note that the rest of the export works fine, the actual numbered images are exported correctly

@dacap
Copy link
Member

@dacap dacap commented Oct 8, 2018

Hi @daisyowl, are all frames inside a tag? or you aren't using tags? did you try using just {frame} instead of {tagframe}?

@daisyowl
Copy link
Author

@daisyowl daisyowl commented Oct 9, 2018

I'm using tags, I'd like to export with {tagFrame} instead of {frame} because i want the frame numbers to be relative to the tags. Here's an example file:

jeffFull.zip

@dacap dacap added the bug label Oct 9, 2018
@dacap
Copy link
Member

@dacap dacap commented Oct 9, 2018

Sorry, definitely it's a bug, I'll try to fix this ASAP for v1.2.10.

@dacap dacap self-assigned this Oct 9, 2018
@dacap dacap added this to the v1.2 milestone Oct 9, 2018
@daisyowl
Copy link
Author

@daisyowl daisyowl commented Oct 10, 2018

great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants