ata4 / disunity

An experimental toolset for Unity asset and asset bundle files.
The Unlicense
2.7k stars 662 forks source link

How to extract animation fbx #34

Open yueding opened 10 years ago

yueding commented 10 years ago

When i try to extract some asserts, it give me only .obj mesh files, Is there any way to get anim data?

ata4 commented 10 years ago

Not right now. Extracting the complete rigging plus all animations is a pretty complex task. I'm currently using a Unity editor script, a custom exchange format and a Blender importer for that format to extract and import those models, but it's not ready to be released yet.

jerrylipeng commented 10 years ago

Hi @ata4 , I'm currently trying to extract animation clips. Seems it's not supported by now. I tried 'disunity dump' and got something like: AnimationClip unsigned int m_ObjectHideFlags = 0 PPtr m_PrefabParentObject int m_FileID = 0 int m_PathID = 0 ... Is it possible to convert it back to a .anim file?

jerrylipeng commented 10 years ago

Hi @ata4 , could you please share your script? Disunity can perfectly extract models, shaders and textures. However I really need the bones.. I'd really appreciate if you could help.

ata4 commented 10 years ago

I can upload it in the next days, but I won't write a detailed tutorial for these highly experimental scripts.

jerrylipeng commented 10 years ago

Thanks!!

ata4 commented 10 years ago

Okay, you can find it in the unity-editor-utils repo. You need to install both the editor and Blender script to work with the files (you can skip UnpackAssets.cs). Should be pretty simple if you have worked with the two programs before, otherwise Google should help. Just select the transform with the skinned mesh in the editor, export it as .py and then import that file with the import script in Blender.

sonygod commented 10 years ago

but where can I get the (transform with the skinned mesh) from disunity tool? only *.obj mesh but none skinmesh.. any guide?

ata4 commented 10 years ago

Disunity doesn't support skinned meshes yet, just static meshes.

Sn0wBiT commented 10 years ago

Could you make a tutorial ?