- Editado
Import bone icon from JSON data.
Hey guys,
A simple question, is it possible somehow to define bone icon drawable inside imported JSON data file?
My case is I'm using customized Photoshop export script to produce template-like Spine project with a few persistent bones and constraints already generated for the animator to speedup the rigging process. I have a couple very specific service bones in that setup and I'd like to have them colored and having different icons. For color it's not a big deal, just putting "color" field under the bone's JSON works fine. But is there similar JSON field for icon that can be imported by the editor?
Thanks in advance!
There is not a way to specify bone icons in the JSON, sorry! In the future we'll add it to be exported when "non-essential data" is checked, and of course imported again.
Thanks, Nate. Will look forward for it!
Through testing I found out something else that doesn't get imported properly - easing function attributes (like "curve", "c2", "c3" etc).
For example, transitions in this animation turn into completely linear after the import:
"camera":{
"bones":{
"camera-anchor":{
"translate":[
{
"x":-50,
"y":-25,
"curve":0.25,
"c3":0.75
},
{
"time":6.6667,
"x":50,
"y":25,
"curve":0.25,
"c3":0.75
},
{
"time":13.3333,
"x":-50,
"y":-25
}
]
}
}
}
Curves definitely import correctly, eg exporting spineboy-pro.spine
to JSON and importing it again. If you show the entire JSON we can try importing it.