- Modifié
Imported JSON file missing flip properties
I created a project where I animate the flipX properties. I then exported that file. When I try and import that JSON file back into Spine, it seems to be missing the flipX animation keyframes.
I've only noticed this just now and I haven't had a moment to create a cleaner test example to make sure this is actually happening. But I am pretty sure the flip keyframes are not getting imported.
Thank you for the heads up, I've informed Nate on this and we will have it fixed in the next update.
Sorry for the trouble.
No worries!
Hello, I had same problem as you had about thte flip X.
Does the problem solved yet?
I desperate to have the flipX function so hopefully Spine team will fix it soon!!
I will cross my finger:-)
Hi, this is Mika. I would like to say thank you for that you fixed the problem of flipX!
Using flipX I saved lots of time!
Thank you soooo much!!!
I have been triing to make the SETUP more efficient and I found the SKIN is very useful for filpX:^).
It is very much cool and fine function, but I found it can not to be animated in the middle of time line.
It is really pitty...
If the SKIN could be animated, I will have able to transform the characters cloths in the middle of time line with a bit of sparckling effect.
or...return to different direction:-).
I really love SPINE and hope it will be more friendly for users!!
I have been waiting for your next version up!
@Mika I think you might be referring to Free-Form Deformation on meshes. Please correct me if wrong.
FFD can be keyed please see http://esotericsoftware.com/spine-meshes#Keying
If you are indeed referring to Skins. Then I'll try to explain.
Skins themselves can't be animated, but you can attach multiple skin attachments to a single slot and then key which one should be visible at any given time. This is useful if you need to share slot animation across multiple skins.
Please see the goblins project for an example of this. Notice the eyes blinking on both characters. Without the Skins system we would need a blink animation for each character and since the blinking is in the walk animation this would mean a walk animation for each character.
I hope this explains it, else please see http://esotericsoftware.com/spine-skins
Dear Shiu,
Thank you so much for your reply!
I will have a look your recommendation:^)
Still I have some problems about flip and skin...
First time flip is avarable to flip...but after the first time,
all animations follow the first flip... can not go back to before flip...
It might be problems of engenners...
Anyway I will read them first!!
I will come back after reading!
See you soon.
I believe this is still an issue with the latest build (2.1.11). I can export a JSON file with flipX an flipY keyed in an animation then import that same JSON file back in and the keys disappear.
It also looks like it's not honoring slots that are keyed off in the setup pose. I think this is being tracked on trello (https://trello.com/c/5UyV0Jlz/108-also- ... -animation), but I don't see anything about the flip keys.
Dear Rare Sloth
It took a long time to replay and I saw your message just now.
During nearly 3 weeks I made try and errors and got an answer to make a born for flip and make flip keys for all animations.
Even the animation does not need to filp, just make flip key without check. Then you will have proper data for cocos2dX.
I am going to test with unity from now.
I will cross my finger to get good result!!!
- Modifié
This is still a bug after 11 months??
Easy reproduce case...
- Import the JSON below
{ "skeleton": { "hash": "N0o7q2XBlNvD8Kzajnc+c1hIpb4", "spine": "2.1.27", "width": 0, "height": 0, "images": "" }, "bones": [ { "name": "root" }, { "name": "bone", "parent": "root", "length": 77.79, "x": 7.5, "y": 9, "rotation": 43.84 } ], "animations": { "animation": { "bones": { "bone": { "rotate": [ { "time": 0, "angle": 0 }, { "time": 0.6666, "angle": -24.53 }, { "time": 1.3333, "angle": 0 } ], "flipX": [ { "time": 0, "x": true }, { "time": 1.3333, "x": true } ] } } } } }
- Look at the animation and see there is no flipped key. Below is what you get if you export to JSON. I'm running the latest (2.1.27 Pro).
{
"skeleton": { "hash": "PivZVo8kYyRjIUwjU85khtH+Mw0", "spine": "2.1.27", "width": 0, "height": 0, "images": "" },
"bones": [
{ "name": "root" },
{ "name": "bone", "parent": "root", "length": 77.79, "x": 7.5, "y": 9, "rotation": 43.84 }
],
"animations": {
"animation": {
"bones": {
"bone": {
"rotate": [
{ "time": 0, "angle": 0 },
{ "time": 0.6666, "angle": -24.53 },
{ "time": 1.3333, "angle": 0 }
]
}
}
}
}
}
this is an annoying bug