maxgribov / spine Goto Github PK
View Code? Open in Web Editor NEWUnofficial Spine runtime Swift library, allows you to play animations created in the Spine app (http://esotericsoftware.com).
License: MIT License
Unofficial Spine runtime Swift library, allows you to play animations created in the Spine app (http://esotericsoftware.com).
License: MIT License
Is there a way we can get a list of textures instead of an action when animating an object?
Can we add an extension do to that?
Thank you
Hi and thanks for the great library. Just trying to get familiar with it and run into problem...
Downloaded Spine Trial from Esoteric home page. There are some examples included. Tried to get "owl" example running.
Created asset folder named "Owl" and added Sprite Atlas named "default" under it. "Provides namespace" are crossed in both. Then dropped all the assets from "owl" "images" folder into that Sprite Atlas.
There's no directory structure in Owl Spine project, so no need for other atlases besides "default" I think?
The core is relatively simple, copied from the example:
class MainScene: SKScene {
override func didMove(to view: SKView) {
backgroundColor = .white
if let character = Skeleton(fromJSON: "owl-pro", atlas: "Owl", skin: "default"){
character.position = CGPoint(x: self.size.width / 2, y: (self.size.height / 2))
character.setScale(0.2)
self.addChild(character)
if let idleAnimation = character.animation(named: "idle") {
character.run(SKAction.repeatForever(idleAnimation))
}
}
}
}
However, only some of the assets are drawn (and animated). Can't figure out why these ones, but not others.
Asset names should be correct, they're the same as in Spine project and JSON file.
Tried also to copy images from "1x" to "2x" and "3x" also with no help.
What might be the problem? And how could I debug this kind of problems?
Oh, my God. I can't believe you're still updating this. Thank you
Hello.. I want to downloaded images from a server and load in my app. It's possible to create a Sprite atlas from code?
Thanks for all!
hi, I'm trying to run a very simple test: Change the skin of a running animation with a touch in the screen.
This is my code:
var character: Skeleton!
override func didMove(to view: SKView) {
character = Skeleton(fromJSON: "zombie", atlas: "Zombie", skin: "zombie1")
self.addChild(character)
if let walkAnimation = character.animation(named: "Idle") {
character.run(SKAction.repeatForever(walkAnimation))
}
}
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
character.applySkin(named: "zombie2")
}
When I run the app, I can see the Skin zombie1
and the Idle
animation running.
When I tap the screen, it looks like the zombie2
skin images are applied to the animation, but the images from the skin zombie1
are still visible.
In the Spine app, I can see the correct skin is applied to the animation when I toggle them, so I dont think it is a problem with the Spine json.
Am I doing anything wrong? Should I remove the running animation before changing the skin?
Thank you
Is it possible to change the particular skin attachment in run time?
For example, I'd like to implement an avatar system, so users can change the weapon, shoes, hat or clothes on-demand. (Not just change the whole skin)
How can I achieve this function by Spine?
Can I use dragonbons to export material, or must I use Spine?
When I creating a Skeleton, it threw this error:
Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Swift.DecodingError.keyNotFound(Keys(stringValue: "x", intValue: nil), Swift.DecodingError.Context(codingPath: [Keys(stringValue: "skeleton", intValue: nil)], debugDescription: "No value associated with key Keys(stringValue: "x", intValue: nil) ("x").", underlyingError: nil))
And this is my json file:
{"skeleton":{"hash":"KLaE5KTTREcwZsRtm9RMAcvuoQo","spine":"3.8.75"},"bones":[{"name":"root"},{"name":"PC_Layer","parent":"root","scaleX":0.89,"scaleY":0.89},{"name":"halo","parent":"PC_Layer","length":237.64,"rotation":90,"x":-121.8,"y":1472.56}],"slots":[{"name":"halo","bone":"halo","attachment":"halo"},{"name":"halo2","bone":"halo","color":"ffffff00","attachment":"halo","blend":"additive"},{"name":"serika","bone":"PC_Layer","attachment":"serika"},{"name":"00_default","bone":"PC_Layer","attachment":"01_normal"},{"name":"eyeclose","bone":"PC_Layer"},{"name":"eyeclose2","bone":"PC_Layer"}],"skins":[{"name":"default","attachments":{"00_default":{"01_normal":{"type":"mesh","uvs":[1,0.42162,1,0.59057,1,1,0.48193,1,0.37522,1,0,1,0,0.47498,0,0.21177,0,0.04104,0,0,1,0,0.37949,0.56034,0.43924,0.31848,0.33823,0.19754,0.14474,0.13886,0.16324,0.38606,0.60997,0.66527,0.8433,0.78264,0.95427,0.4732,0.7622,0.36294,0.63131,0.41629,0.76932,0.61369,0.16707,0.51256,0.73645,0.72889,0.3738,0.95692,0.49758,0.96582,0.56302,0.21355],"triangles":[8,13,14,13,8,26,26,8,9,7,8,14,10,26,9,12,13,26,0,19,26,15,14,13,15,13,12,7,14,15,20,26,19,12,26,20,0,26,10,18,19,0,6,7,15,11,22,15,6,15,22,12,11,15,11,12,20,18,0,1,21,19,18,21,18,1,20,19,21,16,11,20,16,20,21,23,16,21,17,21,1,23,21,17,24,22,11,24,11,16,25,24,16,25,16,23,5,6,22,5,22,24,3,4,24,5,24,4,25,3,24,17,1,2,25,23,17,2,25,17,3,25,2],"vertices":[130.04,1197.23,130.04,1167.49,130.04,1095.43,16.06,1095.43,-7.41,1095.43,-89.96,1095.43,-89.96,1187.84,-89.96,1234.16,-89.96,1264.21,-89.96,1271.43,130.04,1271.43,-6.47,1172.81,6.67,1215.38,-15.55,1236.67,-58.12,1246.99,-54.05,1203.49,44.23,1154.35,95.56,1133.69,119.98,1188.15,77.72,1207.56,48.93,1198.17,79.29,1163.42,-53.21,1181.22,72.06,1143.15,-7.73,1103.01,19.51,1101.45,33.9,1233.85],"hull":11},"02_respond":{"type":"mesh","uvs":[1,0.39413,1,0.54839,1,1,0.47271,1,0.28686,1,0,1,0,0.45157,0,0.19557,0,0,1,0,0.35114,0.54182,0.42939,0.317,0.29524,0.19229,0.10939,0.16603,0.14852,0.36459,0.57611,0.64029,0.84301,0.75352,0.89611,0.41711,0.71865,0.37116,0.5831,0.42367,0.72563,0.573,0.57891,0.2809,0.34275,0.83393,0.51603,0.86018],"triangles":[12,13,8,8,21,12,7,8,13,9,21,8,11,12,21,14,13,12,14,12,11,7,13,14,0,18,21,0,21,9,17,18,0,19,21,18,11,21,19,6,7,14,10,14,11,10,11,19,6,14,10,17,0,1,20,18,17,20,17,1,19,18,20,15,10,19,15,19,20,16,20,1,15,20,16,22,6,10,22,10,15,23,22,15,23,15,16,5,6,22,4,5,22,3,22,23,4,22,3,16,1,2,23,16,2,3,23,2],"vertices":[139.04,1200.58,139.04,1170.5,139.04,1082.43,18.29,1082.43,-24.27,1082.43,-89.96,1082.43,-89.96,1189.38,-89.96,1239.3,-89.96,1277.43,139.04,1277.43,-9.55,1171.78,8.37,1215.62,-22.35,1239.94,-64.91,1245.06,-55.95,1206.34,41.97,1152.58,103.09,1130.5,115.25,1196.1,74.61,1205.06,43.57,1194.82,76.21,1165.7,42.61,1222.66,-11.47,1114.82,28.21,1109.7],"hull":10},"03_smile":{"type":"mesh","uvs":[1,0.45385,1,1,0.50828,1,0.23591,0.99999,0,1,0,0.39628,0,0.25811,0,0.05087,0,0,1,0,0.09951,0.38641,0.22321,0.39792,0.3263,0.44727,0.3799,0.4851,0.41426,0.42588,0.33454,0.33542,0.23696,0.25811,0.10914,0.24989,0.61218,0.59201,0.69877,0.59036,0.78948,0.61503,0.89806,0.69234,0.93929,0.62655,0.84995,0.52951,0.73587,0.47852,0.61218,0.50812,0.53246,0.31733,0.28669,0.78763,0.55137,0.90364],"triangles":[16,17,7,16,7,26,7,8,26,6,7,17,9,26,8,15,16,26,10,6,17,5,6,10,11,17,16,11,16,15,10,17,11,14,15,26,12,11,15,12,15,14,26,9,0,24,26,0,13,12,14,25,26,24,14,26,25,23,24,0,19,25,24,20,19,24,18,25,19,13,14,25,18,13,25,23,20,24,22,23,0,20,23,22,21,20,22,27,11,12,27,12,13,27,13,18,28,27,18,11,27,10,2,3,27,27,4,5,10,27,5,3,4,27,28,2,27,22,0,1,21,22,1,18,19,20,20,21,18,21,28,18,1,28,21,2,28,1],"vertices":[131.04,1182.38,131.04,1082.43,23.35,1082.43,-36.3,1082.44,-87.96,1082.43,-87.96,1192.91,-87.96,1218.2,-87.96,1256.12,-87.96,1265.43,131.04,1265.43,-66.17,1194.72,-39.08,1192.61,-16.5,1183.58,-4.76,1176.66,2.76,1187.5,-14.7,1204.05,-36.07,1218.2,-64.06,1219.7,46.1,1157.1,65.07,1157.4,84.93,1152.88,108.71,1138.73,117.74,1150.77,98.18,1168.53,73.19,1177.86,46.1,1172.45,28.65,1207.36,-25.18,1121.3,32.79,1100.07],"hull":10},"04_embarrassed":{"type":"mesh","uvs":[1,0.3862,1,0.49662,1,1,0.52401,1,0.37201,1,0,1,0,0.17655,0,0,1,0,0.04953,0.42581,0.33487,0.48387,0.43632,0.31109,0.35009,0.18788,0.18015,0.12698,0.15859,0.32667,0.61133,0.59859,0.82565,0.68923,0.93979,0.60284,0.94867,0.39182,0.76732,0.34508,0.59485,0.44989,0.76351,0.51078,0.08374,0.57876,0.0774,0.75013,0.14334,0.74729,0.13827,0.58301,0.28721,0.7019,0.15281,0.92883,0.62161,0.84306,0.51921,0.24505],"triangles":[7,12,13,6,7,13,7,29,12,7,8,29,11,12,29,14,6,13,14,13,12,14,12,11,0,19,29,0,29,8,18,19,0,9,6,14,20,29,19,11,29,20,10,14,11,10,11,20,9,14,10,18,0,1,21,20,19,21,19,18,21,18,1,25,22,9,10,25,9,15,20,21,10,20,15,17,21,1,16,21,17,15,21,16,26,25,10,26,10,15,24,25,26,23,9,22,23,22,25,23,25,24,28,15,16,26,15,28,27,24,26,5,6,9,5,9,23,23,24,27,5,23,27,4,26,28,27,26,4,5,27,4,3,4,28,17,1,2,16,17,2,28,16,2,3,28,2],"vertices":[130.04,1193.35,130.04,1171.6,130.04,1072.43,25.32,1072.43,-8.12,1072.43,-89.96,1072.43,-89.96,1234.65,-89.96,1269.43,130.04,1269.43,-79.07,1185.55,-16.29,1174.11,6.03,1208.15,-12.94,1232.42,-50.33,1244.42,-55.07,1205.08,44.53,1151.51,91.68,1133.66,116.79,1150.67,118.75,1192.25,78.85,1201.45,40.9,1180.81,78.01,1168.81,-71.54,1155.42,-72.93,1121.66,-58.43,1122.22,-59.54,1154.58,-26.78,1131.16,-56.34,1086.45,46.79,1103.35,24.26,1221.16],"hull":9},"05_serious":{"type":"mesh","uvs":[1,0.41068,1,0.62876,1,1,0.50926,1,0.37476,1,0,1,0,0.47365,0,0.21277,0,0,0.09009,0,1,0,0.34719,0.56766,0.44587,0.36318,0.33945,0.20571,0.13822,0.14931,0.16338,0.36553,0.63355,0.67342,0.85219,0.77683,0.64129,0.48775,0.79995,0.41489,0.96055,0.44074,0.78834,0.58881,0.3897,0.92935,0.5242,0.95787,0.57665,0.37899],"triangles":[13,14,9,9,24,13,14,7,8,14,8,9,24,12,13,15,14,13,15,13,12,7,14,15,9,10,24,24,10,0,19,24,0,20,19,0,6,7,15,18,24,19,11,15,12,6,15,11,21,18,19,21,19,20,20,0,1,21,20,1,24,18,12,16,18,21,17,21,1,16,21,17,11,16,22,12,18,11,18,16,11,23,22,16,23,16,17,5,6,11,5,11,22,4,5,22,3,4,22,23,3,22,17,1,2,23,17,2,3,23,2],"vertices":[125.04,1197.74,125.04,1159.14,125.04,1093.43,19.53,1093.43,-9.39,1093.43,-89.96,1093.43,-89.96,1186.6,-89.96,1232.77,-89.96,1270.43,-70.59,1270.43,125.04,1270.43,-15.32,1169.96,5.9,1206.15,-16.98,1234.02,-60.24,1244.01,-54.84,1205.73,46.25,1151.24,93.26,1132.93,47.92,1184.1,82.03,1197,116.56,1192.42,79.53,1166.21,-6.18,1105.94,22.74,1100.89,34.02,1203.35],"hull":11},"06_shout":{"type":"mesh","uvs":[1,0.36946,1,0.51029,1,1,0.50135,1,0.35687,1,0,1,0,0.27349,0,0.19904,0,0,0.05768,0,1,0,0.0419,0.42362,0.34649,0.4871,0.43683,0.36748,0.35113,0.18805,0.13108,0.15021,0.17741,0.32598,0.62561,0.57986,0.83523,0.67018,0.94988,0.60793,0.97884,0.40532,0.81438,0.37724,0.63719,0.42485,0.7808,0.52127,0.42325,0.22745,0.51637,0.33709,0.72541,0.3705,0.34373,0.70243,0.17298,0.89105,0.62285,0.80106],"triangles":[14,15,9,9,24,14,7,8,9,7,9,15,10,24,9,6,7,15,16,15,14,6,15,16,26,25,24,13,24,25,14,24,13,10,26,24,0,26,10,21,26,0,20,21,0,11,6,16,22,25,26,22,26,21,13,12,16,13,16,14,11,16,12,20,0,1,23,22,21,22,13,25,17,22,23,23,20,1,20,23,21,19,23,1,18,23,19,17,23,18,27,11,12,22,17,13,29,17,18,17,12,13,17,27,12,29,27,17,28,11,27,5,6,11,5,11,28,3,4,27,28,27,4,5,28,4,29,3,27,19,1,2,18,19,2,29,18,2,3,29,2],"vertices":[125.04,1197.06,125.04,1168.34,125.04,1068.43,17.83,1068.43,-13.23,1068.43,-89.96,1068.43,-89.96,1216.64,-89.96,1231.83,-89.96,1272.43,-77.56,1272.43,125.04,1272.43,-80.95,1186.01,-15.47,1173.07,3.96,1197.47,-14.47,1234.07,-61.78,1241.79,-51.82,1205.93,44.54,1154.14,89.61,1135.72,114.26,1148.42,120.49,1189.75,85.13,1195.48,47.03,1185.77,77.91,1166.09,1.04,1226.03,21.06,1203.67,66,1196.85,-16.06,1129.14,-52.77,1090.66,43.95,1109.02],"hull":11},"07_":{"type":"mesh","uvs":[1,1,0,1,0,0,1,0,0.28601,0.59575,0.44212,0.62572,0.50034,0.54726,0.25985,0.48908,0.31723,0.4591,0.42355,0.46704,0.35267,0.54638,0.60433,0.68432,0.72193,0.7332,0.80665,0.64998,0.75734,0.57336,0.63215,0.58128,0.69158,0.65526,0.58677,0.69065,0.60643,0.6995,0.61414,0.73292,0.58022,0.73091,0.4075,0.75104,0.57963,0.81549,0.54182,0.92464,0.36272,0.85083,0.31189,0.67503,0.30479,0.75377,0.33849,0.76396,0.34469,0.68337,0.29466,0.6643,0.29211,0.76481,0.34575,0.78171,0.35767,0.66874,0.39938,0.73101,0.3483,0.86087,0.54667,0.94003,0.60116,0.80128,0.59129,0.68582,0.7262,0.74227,0.82294,0.64444,0.7623,0.56273,0.62798,0.56865,0.58547,0.6776,0.27505,0.60657,0.44338,0.63795,0.51989,0.54795,0.43317,0.45795,0.31302,0.44492,0.24671,0.47749],"triangles":[46,47,2,3,46,2,9,8,47,46,9,47,48,2,47,7,48,47,8,7,47,10,8,9,7,8,10,45,6,46,9,46,6,10,9,6,45,46,41,3,40,46,40,41,46,14,41,40,15,41,14,4,7,10,43,7,4,48,7,43,5,10,6,4,10,5,45,44,5,4,5,44,43,4,44,45,5,6,39,40,3,14,40,39,13,14,39,16,15,14,16,14,13,32,29,43,44,32,43,25,29,32,41,15,42,41,42,45,11,42,15,44,45,42,28,25,32,16,11,15,37,42,11,17,42,37,37,11,38,18,37,38,17,37,18,17,20,44,17,44,42,20,17,18,33,32,44,36,21,33,32,27,28,18,38,19,20,18,19,12,16,13,16,12,11,38,12,13,12,38,11,38,13,39,36,33,20,26,29,25,26,25,28,27,26,28,27,32,31,32,33,31,30,43,29,30,29,26,33,34,31,30,26,27,31,30,27,36,20,19,20,33,44,22,21,36,34,33,24,21,24,33,23,21,22,24,21,23,36,19,38,35,23,22,34,24,23,35,34,23,35,22,36,1,2,48,1,48,43,1,43,30,39,3,0,38,39,0,35,36,38,0,35,38,30,31,34,1,30,34,1,34,35,1,35,0],"vertices":[203.04,1033.43,-193.96,1033.43,-193.96,1413.43,203.04,1413.43,-80.42,1187.05,-18.44,1175.66,4.67,1205.47,-90.8,1227.58,-68.02,1238.97,-25.81,1235.96,-53.95,1205.81,45.96,1153.39,92.65,1134.82,126.28,1166.44,106.7,1195.56,57,1192.55,80.6,1164.43,38.99,1150.99,46.79,1147.62,49.85,1134.92,36.39,1135.69,-32.19,1128.04,36.15,1103.55,21.14,1062.07,-49.96,1090.12,-70.14,1156.92,-72.96,1127,-59.58,1123.13,-57.12,1153.75,-76.98,1161,-77.99,1122.81,-56.7,1116.39,-51.97,1159.31,-35.41,1135.65,-55.69,1086.3,23.07,1056.22,44.7,1108.95,40.78,1152.82,94.34,1131.37,132.75,1168.55,108.67,1199.59,55.35,1197.34,38.47,1155.95,-84.77,1182.94,-17.94,1171.01,12.43,1205.21,-21.99,1239.41,-69.69,1244.36,-96.02,1231.99],"hull":4},"08_":{"type":"mesh","uvs":[1,0.43223,1,0.57712,1,1,0.48987,1,0.28597,1,0,1,0,0.4411,0,0.24445,0,0.08772,0,0,1,0,0.34632,0.53287,0.43821,0.39686,0.29463,0.25429,0.11659,0.21332,0.15966,0.37883,0.60763,0.62792,0.82443,0.72297,0.93355,0.46404,0.73398,0.39358,0.59758,0.42144,0.767,0.59514,0.35983,0.84453,0.52359,0.87751,0.55249,0.22516],"triangles":[8,13,14,8,9,24,10,24,9,7,8,14,24,13,8,15,14,13,7,14,15,0,19,24,12,13,24,20,12,24,19,20,24,0,24,10,6,7,15,18,19,0,12,15,13,11,15,12,6,15,11,18,0,1,21,19,18,21,18,1,20,19,21,16,20,21,17,21,1,16,21,17,16,22,11,11,12,16,16,12,20,23,16,17,23,22,16,22,5,6,22,6,11,4,5,22,3,22,23,4,22,3,17,1,2,23,17,2,3,23,2],"vertices":[129.04,1190.88,129.04,1163.2,129.04,1082.43,17.83,1082.43,-26.62,1082.43,-88.96,1082.43,-88.96,1189.18,-88.96,1226.74,-88.96,1256.68,-88.96,1273.43,129.04,1273.43,-13.46,1171.66,6.57,1197.63,-24.73,1224.86,-63.54,1232.69,-54.15,1201.08,43.5,1153.5,90.76,1135.35,114.55,1184.8,71.05,1198.26,41.31,1192.94,78.24,1159.76,-10.52,1112.13,25.18,1105.83,31.48,1230.43],"hull":11},"09_":{"type":"mesh","uvs":[1,0.64804,1,1,0.63952,1,0.51668,1,0,1,0,0.3543,0,0.21249,0,0,0.41192,0,1,0,0.14025,0.40356,0.26393,0.32062,0.30883,0.18804,0.31199,0.06847,0.16017,0.20868,0.309,0.1401,0.08871,0.06995,0.20995,0.02019,0.34854,0.39006,0.62176,0.56632,0.25591,0.58841,0.347,0.58202,0.44372,0.60633,0.54605,0.66262,0.56629,0.60888,0.50332,0.54747,0.42797,0.50396,0.347,0.49117,0.2323,0.52188,0.7192,0.72993,0.73419,0.66882,0.81163,0.65603,0.90032,0.68445,0.97402,0.75978,0.92905,0.81805,0.86659,0.76831,0.7879,0.73562,0.46951,0.87646,0.65426,0.95026,0.43905,0.95361,0.54975,0.9175],"triangles":[17,7,8,13,17,8,16,7,17,15,17,13,15,14,17,14,16,17,12,14,15,6,7,16,6,16,14,11,14,12,5,6,14,8,15,13,8,12,15,18,12,8,11,12,18,10,5,14,10,14,11,11,28,10,11,18,28,18,19,25,26,18,25,27,18,26,27,28,18,18,8,19,9,19,8,21,27,26,20,28,27,21,20,27,22,26,25,21,26,22,24,25,19,19,9,0,31,19,0,24,22,25,23,22,24,30,19,31,32,31,0,30,24,19,30,23,24,29,23,30,36,30,31,36,31,32,29,30,36,33,32,0,35,36,32,35,32,33,34,35,33,37,22,23,40,37,23,29,40,23,38,40,29,21,37,20,37,21,22,39,37,40,5,20,4,28,5,10,20,5,28,3,39,40,39,20,37,4,20,39,4,39,3,2,40,38,3,40,2,33,0,1,34,33,1,38,35,34,38,29,36,36,35,38,34,1,38,2,38,1],"vertices":[130.04,1177.83,130.04,1088.43,25.86,1088.43,-9.64,1088.43,-158.96,1088.43,-158.96,1252.44,-158.96,1288.46,-158.96,1342.43,-39.92,1342.43,130.04,1342.43,-118.43,1239.93,-82.68,1261,-69.71,1294.67,-68.8,1325.04,-112.67,1289.43,-69.66,1306.85,-133.32,1324.67,-98.29,1337.3,-58.23,1243.36,20.73,1198.59,-85,1192.98,-58.68,1194.6,-30.73,1188.43,-1.15,1174.13,4.7,1187.78,-13.5,1203.38,-35.28,1214.43,-58.68,1217.68,-91.83,1209.88,48.89,1157.03,53.22,1172.55,75.6,1175.8,101.23,1168.58,122.53,1149.45,109.53,1134.65,91.48,1147.28,68.74,1155.59,-23.27,1119.81,30.12,1101.07,-32.08,1100.22,-0.08,1109.39],"hull":10},"10_":{"type":"mesh","uvs":[1,1,0,1,0,0,1,0,0.27905,0.59495,0.45862,0.63195,0.50804,0.54417,0.43555,0.49599,0.33506,0.47447,0.24528,0.48652,0.34824,0.55192,0.48316,0.58835,0.59737,0.68441,0.73163,0.73088,0.80329,0.64826,0.76869,0.60094,0.67891,0.58545,0.60643,0.60782,0.66162,0.65945,0.44021,0.80971,0.55365,0.82769,0.52624,0.86164,0.42619,0.84699,0.58233,0.69052,0.56312,0.72283,0.61653,0.73457,0.61418,0.70031,0.26594,0.60967,0.47244,0.65113,0.53196,0.54467,0.44719,0.47684,0.33357,0.45328,0.22536,0.47024,0.58581,0.59249,0.67602,0.57171,0.76694,0.58507,0.82235,0.64296,0.74421,0.7424,0.57237,0.68234,0.43135,0.79906,0.41224,0.85261,0.52408,0.87257,0.56881,0.82194],"triangles":[30,31,2,32,2,31,31,7,8,9,32,31,2,3,30,8,9,31,30,7,31,29,6,30,7,30,6,30,34,29,10,8,7,3,34,30,35,34,3,16,34,35,11,7,6,10,7,11,33,29,34,17,33,34,10,4,9,10,9,8,36,15,35,16,35,15,16,17,34,27,9,4,32,9,27,5,10,11,4,10,5,3,36,35,14,15,36,28,5,11,27,4,5,28,27,5,29,28,11,29,11,6,18,17,16,33,28,29,38,33,17,12,38,17,38,28,33,18,12,17,26,23,38,38,12,37,37,26,38,24,28,38,24,38,23,15,18,16,13,15,14,13,18,15,13,12,18,37,25,26,24,23,26,25,24,26,37,13,14,37,14,36,13,37,12,39,27,28,39,28,24,39,20,19,42,24,25,42,39,24,42,20,39,39,40,27,22,39,19,22,40,39,21,19,20,22,19,21,41,22,21,40,22,41,42,41,21,42,21,20,1,2,32,1,32,27,1,27,40,36,3,0,37,36,0,42,25,37,0,42,37,41,42,0,1,40,41,0,1,41],"vertices":[203.04,1033.43,-193.96,1033.43,-193.96,1413.43,203.04,1413.43,-83.18,1187.35,-11.89,1173.29,7.73,1206.65,-21.05,1224.96,-60.94,1233.13,-96.58,1228.56,-55.71,1203.7,-2.15,1189.86,43.19,1153.36,96.49,1135.7,124.94,1167.09,111.21,1185.08,75.57,1190.96,46.79,1182.46,68.7,1162.84,-19.2,1105.74,25.84,1098.91,14.96,1086.01,-24.76,1091.58,37.22,1151.04,29.6,1138.76,50.8,1134.3,49.87,1147.32,-88.38,1181.76,-6.4,1166.01,17.23,1206.46,-16.43,1232.24,-61.53,1241.19,-104.49,1234.74,38.6,1188.29,74.42,1196.18,110.51,1191.11,132.51,1169.11,101.49,1131.32,33.27,1154.14,-22.72,1109.79,-30.3,1089.44,14.1,1081.86,31.86,1101.1],"hull":4},"11_":{"type":"mesh","uvs":[1,0.42801,1,0.56771,1,1,0.51144,1,0.3074,1,0,1,0,0.21227,0,0,1,0,0.03945,0.46447,0.35025,0.53674,0.44025,0.29339,0.29865,0.16508,0.13305,0.1459,0.14625,0.36123,0.61905,0.6444,0.83385,0.74912,0.94785,0.43792,0.75825,0.37303,0.61905,0.4099,0.73305,0.58541,0.09117,0.63045,0.0729,0.81573,0.15208,0.8176,0.15665,0.63793,0.33328,0.87936,0.53733,0.9224,0.54769,0.29365],"triangles":[12,13,7,7,27,12,6,7,13,27,11,12,7,8,27,14,13,12,14,12,11,6,13,14,0,18,27,19,27,18,0,27,8,17,18,0,9,6,14,10,14,11,9,14,10,17,0,1,20,19,18,20,18,17,20,17,1,24,21,9,10,24,9,27,19,11,15,19,20,16,20,1,15,20,16,22,9,21,22,21,24,23,22,24,25,24,10,23,24,25,19,10,11,15,10,19,15,25,10,26,15,16,26,25,15,9,5,6,5,9,22,4,23,25,5,22,23,4,5,23,3,25,26,4,25,3,16,1,2,26,16,2,3,26,2],"vertices":[130.04,1192.82,130.04,1167.81,130.04,1090.43,22.56,1090.43,-22.33,1090.43,-89.96,1090.43,-89.96,1231.44,-89.96,1269.43,130.04,1269.43,-81.28,1186.29,-12.91,1173.36,6.89,1216.92,-24.26,1239.89,-60.69,1243.32,-57.79,1204.77,46.23,1154.08,93.49,1135.34,118.57,1191.05,76.85,1202.66,46.23,1196.06,71.31,1164.65,-69.9,1156.58,-73.92,1123.42,-56.5,1123.08,-55.5,1155.24,-16.64,1112.03,28.25,1104.32,30.53,1216.87],"hull":9},"12_":{"type":"mesh","uvs":[1,0.44056,1,0.51487,1,0.64195,1,1,0.56244,1,0.26388,1,0,1,0,0.49873,0,0.22037,0,0,1,0,0.35625,0.59354,0.44813,0.38174,0.33046,0.19616,0.11931,0.16994,0.19507,0.39182,0.60287,0.68834,0.83014,0.79929,0.64961,0.45839,0.83014,0.37569,0.79307,0.61169,0.6178,0.25004,0.34099,0.84387],"triangles":[13,14,9,9,21,13,8,9,14,10,21,9,0,19,21,12,13,21,15,14,13,15,13,12,8,14,15,0,21,10,18,21,19,12,21,18,7,8,15,19,0,1,11,15,12,7,15,11,20,18,19,20,19,1,20,1,2,18,11,12,16,18,20,16,11,18,17,20,2,16,20,17,22,7,11,22,11,16,6,7,22,5,6,22,4,22,16,4,16,17,5,22,4,17,2,3,4,17,3],"vertices":[129.04,1196.34,129.04,1183.33,129.04,1161.09,129.04,1098.43,33.21,1098.43,-32.17,1098.43,-89.96,1098.43,-89.96,1186.16,-89.96,1234.87,-89.96,1273.43,129.04,1273.43,-11.94,1169.56,8.18,1206.63,-17.59,1239.11,-63.83,1243.69,-47.24,1204.86,42.07,1152.97,91.84,1133.56,52.3,1193.22,91.84,1207.69,83.72,1166.39,45.34,1229.68,-15.28,1125.76],"hull":11},"13_":{"type":"mesh","uvs":[1,0.4395,1,0.61041,1,1,0.4774,1,0.34512,1,0,1,0,0.47801,0,0.22909,0,0,1,0,0.36083,0.57334,0.42991,0.37738,0.29387,0.25425,0.1504,0.21055,0.15784,0.39592,0.59358,0.6647,0.84652,0.77591,0.87113,0.4608,0.70321,0.43299,0.58949,0.50052,0.74041,0.61835,0.49432,0.29195,0.37127,0.91664,0.49739,0.94921],"triangles":[12,13,8,7,8,13,8,21,12,9,21,8,11,12,21,14,13,12,7,13,14,0,18,21,0,21,9,17,18,0,6,7,14,19,21,18,11,21,19,11,14,12,10,11,19,10,14,11,6,14,10,17,0,1,20,18,17,20,17,1,19,18,20,15,19,20,10,19,15,16,20,1,15,20,16,22,10,15,23,22,15,23,15,16,5,6,10,5,10,22,4,5,22,3,22,23,4,22,3,16,1,2,23,16,2,3,23,2],"vertices":[134.04,1193.76,134.04,1163.17,134.04,1093.43,17.5,1093.43,-12,1093.43,-88.96,1093.43,-88.96,1186.87,-88.96,1231.43,-88.96,1272.43,134.04,1272.43,-8.5,1169.81,6.91,1204.88,-23.43,1226.92,-55.42,1234.74,-53.76,1201.56,43.41,1153.45,99.81,1133.55,105.3,1189.95,67.85,1194.93,42.5,1182.84,76.15,1161.75,21.27,1220.17,-6.17,1108.36,21.96,1102.52],"hull":10},"00_default":{"type":"mesh","uvs":[1,0.37608,1,0.55302,1,1,0.47002,1,0.26931,1,0,1,0,0.45844,0,0.18447,0,0,1,0,0.33502,0.5465,0.45167,0.28558,0.28781,0.15838,0.0934,0.15512,0.1545,0.37038,0.57664,0.65739,0.84049,0.7585,0.89954,0.42721,0.72606,0.37983,0.60882,0.41469,0.75161,0.57259,0.54579,0.27025,0.33689,0.83545,0.51917,0.87153],"triangles":[12,13,8,8,21,12,7,8,13,9,21,8,11,12,21,14,13,12,14,12,11,7,13,14,21,9,0,18,21,0,19,21,18,17,18,0,6,7,14,10,14,11,11,21,19,6,14,10,17,0,1,20,18,17,20,17,1,19,18,20,19,10,11,15,19,20,15,10,19,16,20,1,15,20,16,22,10,15,23,22,15,23,15,16,22,5,6,22,6,10,4,5,22,3,22,23,4,22,3,16,1,2,23,16,2,3,23,2],"vertices":[139.04,1204.1,139.04,1169.59,139.04,1082.43,17.67,1082.43,-28.29,1082.43,-89.96,1082.43,-89.96,1188.04,-89.96,1241.46,-89.96,1277.43,139.04,1277.43,-13.24,1170.87,13.47,1221.75,-24.05,1246.55,-68.57,1247.19,-54.58,1205.21,42.09,1149.24,102.51,1129.53,116.03,1194.13,76.31,1203.37,49.46,1196.57,82.16,1165.78,35.03,1224.73,-12.81,1114.52,28.93,1107.48],"hull":10}},"serika":{"serika":{"x":-32.96,"y":244.93,"width":459,"height":1015}},"eyeclose":{"eyeclose":{"type":"mesh","uvs":[1,0.50904,1,0.67138,1,0.74168,1,1,0.61466,1,0.27622,1,0,1,0,0.44508,0,0.28074,0,0.08248,0,0,1,0,0.47215,0.63775,0.7158,0.73604,0.57225,0.5259,0.78541,0.54745,0.4548,0.49088,0.21555,0.59325,0.41347,0.40197],"triangles":[0,18,9,18,8,9,11,0,9,17,7,8,18,14,16,10,11,9,18,15,14,0,15,18,18,17,8,17,18,16,12,16,14,17,16,12,15,0,1,13,14,15,13,15,1,12,14,13,13,1,2,6,7,17,5,17,12,6,17,5,4,12,13,5,12,4,13,2,3,4,13,3],"vertices":[130.04,1181.48,125.76,1145.52,125.76,1133.15,130.04,1095.07,46.03,1095.07,-27.75,1095.07,-87.96,1095.07,-88.74,1186.52,-88.74,1215.44,-87.96,1256.56,-87.96,1271.07,130.04,1271.07,14.97,1158.83,63.81,1134.14,32.51,1171.13,78.98,1167.34,10.41,1178.46,-41.75,1160.44,1.4,1194.11],"hull":12}},"eyeclose2":{"eyeclose":{"x":20.26,"y":1183.42,"width":85,"height":69}},"halo2":{"halo":{"x":21.87,"y":5.16,"rotation":-90,"width":200,"height":87}},"halo":{"halo":{"x":21.87,"y":5.16,"rotation":-90,"width":200,"height":87}}}}],"animations":{"00":{"slots":{"00_default":{"attachment":[{"name":"00_default"}]}},"deform":{"default":{"00_default":{"00_default":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-1.01797,-2.54517,0,0,-0.92933,0.77173,1.54976,0.77173,0,0,0,0,-1.21198,-2.15698,0,0,0,0,0,0,-1.21198,-2.15698,-1.21198,-2.15698,-1.21198,-2.15698,0,-2.76294,0,0,0,0,-1.01797,-2.54517,-1.01797,-2.54517,-1.01797,-2.54517,-1.01797,-2.54517,0,0,0.71497,-0.95898,-1.53644,-0.57959],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"01":{"deform":{"default":{"00_default":{"00_default":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-1.01797,-2.54517,0,0,-0.92933,0.77173,1.54976,0.77173,0,0,0,0,0,-4.58105,0,0,0,0,0,0,0,-4.58105,0,-4.58105,0,-4.58105,0,-4.58105,0,0,0,0,-1.01797,-2.54517,-1.01797,-2.54517,-1.01797,-2.54517,-1.01797,-2.54517,0,0,0.71497,-0.95898,-1.53644,-0.57959],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{},{"time":1.5,"offset":2,"vertices":[-0.41501,-2.07507,0,0,0,0,0,0,-1.0E-5,0,-1.0E-5,0,-0.83005,-2.48999,0,0,-1.0E-5,0,0,0,0,1.2E-4,-0.83005,-2.48999,-0.83005,-2.48999,-0.83005,-2.48987,0,0,0,0,1.0E-5,1.2E-4,-0.41501,-2.07507,-0.41501,-2.07507,-0.415,-2.0752]},{"time":3}]}}}},"02":{"slots":{"00_default":{"attachment":[{"name":"02_respond"}]}},"deform":{"default":{"00_default":{"02_respond":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-0.87599,-1.7522,0,0,-1.1443,1.05127,1.85906,1.05127,0,0,0,0,0,-2.18994,0,0,0,0,0,0,0,-2.18994,0,-2.18994,0,-2.18994,0,-2.18994,0,0,0,0,-0.87599,-1.7522,-0.87599,-1.7522,-0.87599,-1.7522,-0.87599,-1.7522,0,0,0.95579,-1.23389,-1.84434,-0.87256],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"03":{"slots":{"00_default":{"attachment":[{"name":"03_smile"}]}},"deform":{"default":{"00_default":{"03_smile":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":4,"vertices":[-1.64166,0.87476,1.84215,0.87476,0,0,0,0,-0.65804,-3.6189,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-0.65804,-3.6189,-0.65804,-3.6189,-0.65804,-3.6189,-0.65804,-3.6189,0,0,0,0,0,0,0,0,-0.65804,-3.6189,-0.65804,-3.6189,-0.65804,-3.6189,-0.65804,-3.6189,0,0,1.19263,-1.39502,-2.19277,-0.15503],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"04":{"slots":{"00_default":{"attachment":[{"name":"04_embarrassed"}]}},"deform":{"default":{"00_default":{"04_embarrassed":[{"curve":0.249,"c3":0.626,"c4":0.51},{"time":0.7667,"offset":2,"vertices":[-0.33557,-1.00671,0,0,0.65139,-0.53162,-0.0544,-0.53162,0,0,-0.33556,-1.00671,0,0,0,0,0,0,0,0,-0.33557,-1.00671,-0.33557,-1.00671,-0.33557,-1.00671,-0.33557,-1.00671,0,0,0,0,0,0,-0.33556,-1.00671,-0.33556,-1.00671,-0.33557,-1.00671,-0.33556,-1.00671,0,0,0,-5.54199,0,-5.54199,0,0,-0.44816,0.70776,-1.07223,-0.23572,1.10459,0.12085],"curve":0.376,"c2":0.51,"c3":0.749},{"time":1.5,"offset":2,"vertices":[-0.65199,-1.95605,0,0,1.26562,-1.03296,-0.1057,-1.03296,0,0,-0.65199,-1.95605,0,0,0,0,0,0,0,0,-0.65199,-1.95605,-0.65199,-1.95605,-0.65199,-1.95605,-0.65199,-1.95605,0,0,0,0,0,0,-0.65199,-1.95605,-0.65199,-1.95605,-0.65199,-1.95605,-0.65199,-1.95605,0,0,0,0,0,0,0,0,-0.87075,1.37524,-2.08329,-0.45801,2.14616,0.23486],"curve":0.251,"c3":0.624,"c4":0.49},{"time":2.2333,"offset":2,"vertices":[-0.33557,-1.00671,0,0,0.65139,-0.53162,-0.0544,-0.53162,0,0,-0.33556,-1.00671,0,0,0,0,0,0,0,0,-0.33557,-1.00671,-0.33557,-1.00671,-0.33557,-1.00671,-0.33557,-1.00671,0,0,0,0,0,0,-0.33556,-1.00671,-0.33556,-1.00671,-0.33557,-1.00671,-0.33556,-1.00671,0,0,0,-3.91211,0,-3.91211,0,0,-0.44816,0.70776,-1.07223,-0.23572,1.10459,0.12085],"curve":0.374,"c2":0.49,"c3":0.751},{"time":3}],"01_normal":[{}]}}}},"05":{"slots":{"00_default":{"attachment":[{"name":"05_serious"}]}},"deform":{"default":{"00_default":{"05_serious":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-1.63199,-3.26392,0,0,-1.65384,0.60352,1.75656,0.60352,0,0,0,0,-1.63199,-3.26392,0,0,0,0,0,0,0,0,-1.63199,-3.26392,-1.63199,-3.26392,-1.63199,-3.26392,0,0,0,0,0,0,-1.63199,-3.26392,-1.63199,-3.26392,-1.63199,-3.26392,0,0,1.37763,-0.87134,-2.03277,-0.27588],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"06":{"slots":{"00_default":{"attachment":[{"name":"06_shout"}]}},"deform":{"default":{"00_default":{"06_shout":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-1.26001,-1.89014,0,0,-1.51089,1.98755,0.67715,1.98755,0,0,0,-2.86206,0,-2.86206,0,0,0,0,0,0,0,0,0,0,0,-2.86206,0,-2.86206,0,-2.86206,0,-2.86206,0,0,0,0,0,0,-1.26001,-1.89014,-1.26001,-1.89014,-1.26001,-1.89014,-1.26001,-1.89014,0,0,0,0,0,0,0.87607,-2.28809,3.46193,0.42212,-3.35083,-0.87085],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"07":{"slots":{"00_default":{"attachment":[{"name":"07_"}]}},"deform":{"default":{"00_default":{"06_shout":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-1.26001,-1.89014,0,0,-1.51089,1.98755,0.67715,1.98755,0,0,0,-2.86206,0,-2.86206,0,0,0,0,0,0,0,0,0,0,0,-2.86206,0,-2.86206,0,-2.86206,0,-2.86206,0,0,0,0,0,0,-1.26001,-1.89014,-1.26001,-1.89014,-1.26001,-1.89014,-1.26001,-1.89014,0,0,0,0,0,0,0.87607,-2.28809,3.46193,0.42212,-3.35083,-0.87085],"curve":0.25,"c3":0.75},{"time":3}],"07_":[{"curve":0.248,"c3":0.628,"c4":0.52},{"time":0.8,"offset":13,"vertices":[-1.31934,0,-1.31934,0,-1.31934,0,-1.31934,0,0,0,0,0,0,-0.26386,-1.58313,-0.26386,-1.58313,-0.26386,-1.58313,0,0,0,0,0,0,0,0,0,0,1.3518,-1.66968,-2.17159,-0.4071,-1.39766,1.73132,2.26828,0.2854,0,0,0,-5.33521,0,-5.33521],"curve":0.378,"c2":0.52,"c3":0.748},{"time":1.5,"offset":13,"vertices":[-2.42505,0,-2.42505,0,-2.42505,0,-2.42505,0,0,0,0,0,0,-0.485,-2.90991,-0.485,-2.90991,-0.485,-2.90991,0,0,0,0,0,0,0,0,0,0,2.4847,-3.06909,-3.99154,-0.74829,-2.56901,3.18237,4.16927,0.52466],"curve":0.252,"c3":0.622,"c4":0.48},{"time":2.2,"offset":13,"vertices":[-1.31934,0,-1.31934,0,-1.31934,0,-1.31934,0,0,0,0,0,0,-0.26386,-1.58313,-0.26386,-1.58313,-0.26386,-1.58313,0,0,0,0,0,0,0,0,0,0,1.3518,-1.66968,-2.17159,-0.4071,-1.39766,1.73132,2.26828,0.2854,0,0,0,-4.36499,0,-4.36499],"curve":0.372,"c2":0.48,"c3":0.752},{"time":3}],"01_normal":[{}]}}}},"08":{"slots":{"00_default":{"attachment":[{"name":"08_"}]}},"deform":{"default":{"00_default":{"08_":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-0.472,-1.88818,0,0,-1.70661,1.27979,2.66494,1.27979,0,0,0,0,-0.472,-1.88818,0,0,0,0,0,0,0,0,-0.472,-1.88818,-0.472,-1.88818,-0.472,-1.88818,-0.472,-1.88818,0,0,0,0,-0.472,-1.88818,-0.472,-1.88818,-0.472,-1.88818,-0.472,-1.88818,1.08154,-1.64062,-2.42945,-1.021],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"09":{"slots":{"00_default":{"attachment":[{"name":"09_"}]}},"deform":{"default":{"00_default":{"09_":[{"curve":0.249,"c3":0.626,"c4":0.51},{"time":0.7667,"offset":4,"vertices":[-1.54625,0.68884,0.38547,0.68884,0,0,-5.46283,-5.55957,-5.46283,-0.75342,-5.46283,6.44824,0,0,0,0,-0.05453,-7.22925,4.71502,-4.41821,6.44631,0.0752,6.56813,4.12769,0.71378,-0.62427,6.45289,1.69995,-2.04202,4.07764,2.63332,5.76392,0,0,0,0,0,0,0,0,0,0,0,0,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,0,0,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,0,0,0,0,0,0,1.12725,-1.01855,-1.77806,0.00134,1.60631,0.04773,-0.13465,-0.45129],"curve":0.376,"c2":0.51,"c3":0.749},{"time":1.5,"offset":4,"vertices":[-3.00429,1.33838,0.74894,1.33838,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1.578,-4.20801,-1.578,-4.20801,-1.578,-4.20801,-1.578,-4.20801,-1.578,-4.20801,0,0,-1.578,-4.20801,-1.578,-4.20801,-1.578,-4.20801,-1.578,-4.20801,0,0,0,0,0,0,2.19018,-1.979,-3.45467,0.00269,3.12097,0.09277,-0.26162,-0.87695],"curve":0.251,"c3":0.624,"c4":0.49},{"time":2.2333,"offset":4,"vertices":[-1.54625,0.68884,0.38547,0.68884,0,0,-4.30696,-4.38306,-4.30696,-0.59399,-4.30696,5.08398,0,0,0,0,-0.04299,-5.69971,3.71738,-3.4834,5.08235,0.05908,5.1784,3.25439,0.56274,-0.49219,5.08754,1.34009,-1.60992,3.21484,2.07613,4.54443,0,0,0,0,0,0,0,0,0,0,0,0,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,0,0,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,-0.81217,-2.16577,0,0,0,0,0,0,1.12724,-1.01855,-1.77806,0.00134,1.60631,0.04773,-0.13465,-0.45129],"curve":0.374,"c2":0.49,"c3":0.751},{"time":3}],"01_normal":[{}]}}}},"10":{"slots":{"00_default":{"attachment":[{"name":"10_"}]}},"deform":{"default":{"00_default":{"10_":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":13,"vertices":[-2.95386,0,-2.95386,0,-2.95386,0,-2.95386,0,0,0,0,0,0,0,0,-0.84404,-2.9541,-0.84404,-2.9541,-0.84404,-2.9541,-0.84404,-2.9541,0,0,1.02896,-0.56055,-1.49227,-0.17822,-0.88321,0.54419,1.34056,0.23267],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"11":{"slots":{"00_default":{"attachment":[{"name":"11_"}]}},"deform":{"default":{"00_default":{"11_":[{"curve":0.25,"c3":0.75},{"time":0.7333,"offset":2,"vertices":[-0.77312,-1.45569,0,0,-1.29446,0.55579,1.45259,0.55579,0,0,-0.77312,-1.80383,0,0,0,0,0,0,0,0,-0.77312,-1.80383,-0.77312,-1.80383,-0.77312,-1.80383,0,0,0,0,0,0,-0.77312,-1.45569,-0.77312,-1.45569,-0.77312,-1.45569,0,0,0,0,1.06198,-6.37207,1.06198,-6.37207,0,0,1.10408,-0.76562,-1.64297,-0.29419],"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-1.59302,-3.021,0,0,-2.66724,1.14526,2.99306,1.14526,0,0,-1.59302,-3.7168,0,0,0,0,0,0,0,0,-1.59302,-3.7168,-1.59302,-3.7168,-1.59302,-3.7168,0,0,0,0,0,0,-1.59302,-3.021,-1.59302,-3.021,-1.59302,-3.021,0,0,0,0,0,0,0,0,0,0,2.27496,-1.57764,-3.38534,-0.6062],"curve":0.25,"c3":0.75},{"time":2.2333,"offset":2,"vertices":[-0.8199,-1.21692,0,0,-1.37278,0.58948,1.54048,0.58948,0,0,-0.8199,-1.91296,0,0,0,0,0,0,0,0,-0.8199,-1.91296,-0.8199,-1.91296,-0.8199,-1.91296,0,0,0,0,0,0,-0.8199,-1.21692,-0.8199,-1.21692,-0.8199,-1.21692,0,0,0,0,0,-5.31006,0,-5.31006,0,0,1.17088,-0.81201,-1.74238,-0.31201],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"12":{"slots":{"00_default":{"attachment":[{"name":"12_"}]}},"deform":{"default":{"00_default":{"12_":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-0.86598,-3.46387,-0.86598,-3.46387,0,0,-3.46105,0.82983,2.50037,0.82983,0,0,0,0,0,-3.03076,0,0,0,0,0,0,0,-3.03076,0,-3.03076,0,-3.03076,0,0,0,0,0,0,-0.86598,-3.46387,-0.86598,-3.46387,0,0,0,0,0.96068,-1.66138],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{}]}}}},"13":{"slots":{"00_default":{"attachment":[{"name":"13_"}]}},"deform":{"default":{"00_default":{"13_":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-0.41499,-2.90503,0,0,-1.44386,0.66748,1.75735,0.66748,0,0,0,0,-0.82999,-3.32007,0,0,0,0,0,0,-0.82999,-3.32007,-0.82999,-3.32007,-0.82999,-3.32007,0,0,0,0,0,0,-0.41499,-2.90503,-0.41499,-2.90503,-0.41499,-2.90503,0,0,0,0,1.12455,-0.9519,-1.92776,-0.31909],"curve":0.25,"c3":0.75},{"time":3}]}}}},"99":{"slots":{"eyeclose2":{"attachment":[{"name":"eyeclose"}]},"00_default":{"attachment":[{"name":null}]}},"deform":{"default":{"00_default":{"00_default":[{"curve":0.25,"c3":0.75},{"time":1.5,"offset":2,"vertices":[-1.01797,-2.54517,0,0,-0.92933,0.77173,1.54976,0.77173,0,0,0,0,0,-4.58105,0,0,0,0,0,0,0,-4.58105,0,-4.58105,0,-4.58105,0,-4.58105,0,0,0,0,-1.01797,-2.54517,-1.01797,-2.54517,-1.01797,-2.54517,-1.01797,-2.54517,0,0,0.71497,-0.95898,-1.53644,-0.57959],"curve":0.25,"c3":0.75},{"time":3}],"01_normal":[{},{"time":1.5,"offset":2,"vertices":[-0.41501,-2.07507,0,0,0,0,0,0,-1.0E-5,0,-1.0E-5,0,-0.83005,-2.48999,0,0,-1.0E-5,0,0,0,0,1.2E-4,-0.83005,-2.48999,-0.83005,-2.48999,-0.83005,-2.48987,0,0,0,0,1.0E-5,1.2E-4,-0.41501,-2.07507,-0.41501,-2.07507,-0.415,-2.0752]},{"time":3}]}}}},"Eye_Close_01":{"slots":{"eyeclose":{"attachment":[{"time":0.0333,"name":"eyeclose"},{"time":0.1,"name":null}]},"00_default":{"attachment":[{"time":0.0333,"name":null},{"time":0.1,"name":"01_normal"}]}},"deform":{"default":{"00_default":{"01_normal":[{"curve":"stepped"},{"time":0.0667,"curve":"stepped"},{"time":0.1,"offset":2,"vertices":[-1.73997,-8.18005,0,0,0,0,0,0,-1.0E-5,0,-1.0E-5,0,-0.85999,-10.32007,0,0,-1.0E-5,0,0,0,0,1.2E-4,-0.85999,-10.32007,-0.85999,-10.32007,-0.85999,-10.31995,-0.85999,-10.32007,0,0,1.0E-5,1.2E-4,-1.73997,-8.18005,-5.15996,-9.89001,-5.15995,-9.89014,-5.15995,-9.89014],"curve":"stepped"},{"time":0.1333}]}}}},"Idle_01":{"slots":{"halo2":{"color":[{"color":"ffffff00"},{"time":0.8,"color":"ffffff62"},{"time":1.5,"color":"ffffff00"},{"time":2.2,"color":"ffffff62"},{"time":3,"color":"ffffff00"}]}},"bones":{"halo":{"translate":[{"curve":0.25,"c3":0.75},{"time":1.5,"y":20,"curve":0.25,"c3":0.75},{"time":3}]},"PC_Layer":{"translate":[{"curve":0.25,"c3":0.75},{"time":1.5,"y":-2.5,"curve":0.25,"c3":0.75},{"time":3}]}}}}}
Thanks for your job! I'm still trying to solve this issue.
My animation is like:
"animations": {
"Rise right hand": {
"bones": {
"Arms Right": {
"rotate": [
{
"curve": [ 0.144, 0, 0.645, -63.72 ]
},
....
When trying to load the skeleton, I'm getting this error:
typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [Keys(stringValue: "rotate", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), Keys(stringValue: "curve", intValue: nil)], debugDescription: "Expected to decode String but found an array instead.", underlyingError: nil))
In AnimationModels.swift, at line 542.
Shortly, the problem, is that BoneKeyframeRotateModel
expect animation to be like this (case at line 532):
"curve": 0.144,
"c2": 0,
"c3": 0.645,
"c4": -63.72
Or like this (line 543, AnimationModels.swift):
"curve": "bezier"
But the actual timing is encoded like an array:
"curve": [ 0.144, 0, 0.645, -63.72 ]
Why is it different? May be because Spine editor version was updated. I use 4.0.45.
If you ask, I can rise a PR to fix this issue.
I have 3 skins in my model. I'm looking for a way to randomize the bones by combining the skins.
For example, let's say I have 3 bones: head, body, and legs
I would like to have the image for head to come from skin1, the body from skin2, and the legs from skin3.
Is this possible?
can you shows us exporting setting in spine.
Hello,
Could you please share your demo project?
Hello, I'm a loyal user of your Spine. First of all, thank you for providing a very good library, but I need your help.
https://github.com/maxgribov/Spine
We have shown Skeleton properly, previously because of the version problem of our Spine. But when we are ready to start, we encounter another problem, that is, the problem of loading resources. Our picture or JSON file resources are real servers。
In this way,
https://github.com/maxgribov/Spine/wiki/Assets
operations are not possible, and we often have resource updates or additions, which will cause us to need to repackage every time.
So, may I ask, what better solution is there, or can we solve the problem of this resource?
Hey,
This framework is awesome! Thank you!
But a month ago EsotericSoftware released new version. And there are some new changes in JSON file:
– skeleton
without width
param;
– animations
with new c2
and c3
params and curve
is a single value, not an array.
Do you plan to update it?
Oc mixed with swift
add '@objc()' code in swift file
example
@objc(EmptyType) public enum EmptyType:Int { case OrderType case ReserveType }
Thanks for this lib!
It's possible to implement mesh support ?
Is it not possible to create a Skeleton
using atlas
file exported from Spine? Or do I have to create an Xcode .spriteatlas
?
Thank you, this library I have been using very well recently. But there is a small suggestion in Skin.swift ,
func texture(with name: String, from atlasName: String) -> SKTexture,
let textureName = atlas.textureNames.first(where: { $0.contains(name) }) ,
sometimes If the resource name prefix is the same, there will be a mismatch. I try to modify it to solve the problem:
let textureName = atlas.textureNames.first(where: { $0.contains(name.appending(".")) }).
Or do you have a better solution?
Hello,
in the last few days, I played with this framework, it's a pretty decent work!
I plan to test on Apple Watch in this weekend.
Currently, I'm developing our app new version with the official spine-objc framework (in a swift project), but it will be awesome if we can do animations on the watch too.
The only thing that missing here is the mesh support, do you plan to build it?
As I see, it's not that easy :(
I'm available to help :)
Hey 👋
I'm bold enough to try using your wonderful solution in one of the commercial projects 😂
I have a test project running. But can you tell me, is there any manual or example on how exactly to use your library with images loaded after the application is launched?
Is it possible to integrate Spine animation effects on the widget
This is a useful framework for me, I plan to use it in my project. Thanks!
I found a problem when animating the node's color change. Animation duration is not taken into account. I would suggest such a change (line #252, Animation.swift):
let delta = timing Function(Float(time) / Float(duration))
After this fix, everything works correctly for me.
Hello, first of all I want to thank you for trying to keep this library up to date.
Has anyone tried to solve the missing frame of a Skeleton
character? I also tried calculateAccumulatedFrame()
but it return values that make no sense (for Golbin it's it's more width than height)
And the second question that is related to this, has anyone tried to set the correct physicsBody
for a character so that it corresponds to its actual size.
Everything can be solved through some magic number, but I don't like this solution very much..
Thanks a lot for answer!
Hello! I tried to added a second skin.. but this doesn't work. First of all, Skin HeadColor1, works fine but the second "HairStyle1" not is showing. What si happened?
Regards and thanks for your help!
override func didMove(to view: SKView) {
if let character = Skeleton(fromJSON: "skeleton", atlas: "Skin", skin: "HeadColor1"){
character.name = "Girl_Avatar"
character.position = CGPoint(x: 0, y: 0)
character.setScale(0.2)
self.addChild(character)
if let walkAnimation = character.animation(named: "Idle") {
character.run(SKAction.repeatForever(walkAnimation))
}
character.applySkin(named: "HairStyle1") //This line doesn't work!
}
}
Since the last update I got multiple build errors like Cannot find 'CGFloat'
(see below). Inspecting module files shows that they miss SpriteKit
import. Probably it was automatically imported on your local Xcode, but it doesn't work on mine and produce these errors.
/.../Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Model/Animation/Keyframes/Bone/BoneKeyframeShearModel.swift:13:16: Cannot find type 'CGVector' in scope
/.../Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Model/Animation/Keyframes/Bone/BoneKeyframeShearModel.swift:30:48: Cannot find 'CGFloat' in scope
/...Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Model/Animation/Keyframes/Bone/BoneKeyframeShearModel.swift:31:48: Cannot find 'CGFloat' in scope
/.../Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Extensions Public/Skeleton+Points.swift:28:18: Generic parameter 'ElementOfResult' could not be inferred
Please give me an example
I want to load a network image resource to replace the local .spriteatlas
func updated(channel: ColorChannel, index: Int) -> SKColor {
guard channel >= 0, channel <= 1 else { return self }
switch index {
case 0: return updated(red: channel)
case 1: return updated(green: channel)
case 2: return updated(blue: channel)
case 4: return updated(alpha: channel) // case 4 should be 3
default: return self
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.