dragonbones / tools Goto Github PK
View Code? Open in Web Editor NEWDragonBones Tools
License: MIT License
DragonBones Tools
License: MIT License
from the version 2.3 skeleton.json
{ "displayIndex": 4, "duration": 2, "event": "attack1", "transform": { "pX": 0, "pY": 0, "scX": 1, "scY": 1, "skX": 0, "skY": 0, "x": 43.3, "y": 3.35 }, "z": 4 }
after run the db2 -t new,search ‘event’ in the whole output json file, there is not event in the output skeleton.json file。
the version of this tool is [email protected]
Running the command 2db -t new
fails with the message Unknown type: none
and I was unable to find any workaround to this.
Conversely, db2 -t new
on the same path prints Convert complete
but there are no changes to the original file or any new files.
新版本导出spine存在问题
deform为空
"deform": {
"": {
"左刘海": {
Seems all conversions are for DB json format, is it possible to support db binary file?
点击预览没有反应,且导出之后也没有任何提示,导出不出来(dragonbones JSON5.5,spine,dragonbones二进制,html点击导出后直接退出导出对话框并且没有返回任何对话框,当然也没有导出),png、gif、dragonbones JSON5.0等能正常导出,请问是什么原因?版本为5.6.2
I add an exported skeleton v2.3 i am converting with [email protected].
The old version has the event firing at the expected frame, and in the skeleton it looks like:
"frame": [
{
"duration": 59
},
{
"duration": 41,
"event": "event_label"
}
],
as expected, the animation is 100 frames long, and at frame 60 i have a label "@event_label".
Now the updated skeleton is missing any duration data after conversion with db2 -t new
, and looks like (again, only the interesting part):
"animation": [
{
"duration": 100,
"name": "animation_label",
"frame": [
{},
{
"event": "event_label"
}
]
}
]
If i "correct" it manually adding the missing "duration" data, it works as expected:
"frame": [
{
"duration": 59 // adding this line does the job!
},
{
"event": "event_label",
"duration": 41 // not sure if this does anything...
}
]
The exported spine json file will ignore the key at frame 0 if there is no animation for the bone.
But the spine runtime will not use a default 0 value for animations.
So problems may happend when animations transition happens,
I made a script to fix this issue:: db_spine_fix
Hope this can be solved in the next dragonbones version.
Nice tool. Spriter support would be awesome though ;)
according to this doc
https://doc.starling-framework.org/v2.1/starling/textures/TextureAtlas.html
TextureAtlas with rotated is not supported.
however when I try it import a skeleton.xml texture.xml texture.png in to Dragonbone Pro with official importer. It display mismatch images. Looks like the rotated option , did not work.
this tool seems not provide a xml convert function
A feature to convert DragonBones Json to Live2D Json will be really helpful. If contributors can help?
I tried to convert an animation exported from Flash using the DesignPanel v3.0.1 to the new v5.5 format, but it seems that one of the two is failing:
I attach two images and the two skeletons with their textures/atlases.
This is how it is expected to look like:
...and this is how it ends up
This is exported.zip from DesignPanel 3.0.1, using the command
$ db2 -t new -i ./exported -o ./converted
i got to this skeleton converted.zip
.option("-d, --delete-raw", "Delete raw files after convert complete")
命令行无法获得-d参数, 改为--delete_raw可以获得
I have tired 2db -t live2d
on a folder with *.model3.json
but noting happens. I rename the json file to *.model.json
, but the 2db raised a Model parse error.
Is there any way to convert a moc3 file to DragonBones format ?
deform must contain "default" when converting to spine json using 'db2 -t spine'.
This line cause this issue:
Tools/src/format/dragonBonesFormat.ts
Line 1508 in e212bef
It should be skin: string = "default";
"deform": {
"": {
"Head Default": {
"Head Default": [
Like this:
"deform": {
"default": {
"Head Default": {
"Head Default": [
龙骨模型可以直接转live2d v3 格式模型吗
以为编译的时候没问题了,结果报错了:
Tools-master>tsc
src/helper/helperRemote.ts(49,9): error TS6133: 'jsonString' is declared but its value is never read.
src/remote.ts(249,21): error TS6133: 'jsonString' is declared but its value is never read.
一查原来是变量定义了,但是没有使用
然后不负责任地加了
if (jsonString) {
}
编译通过
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.