soupday / cc_blender_tools

Add-on for Blender, for importing and auto-setup of character creator 3 & 4 and iClone 7 & 8 character exports into Blender.
GNU General Public License v3.0
448 stars 80 forks source link

Export character from blender to character creator 4 #185

Open drkl151 opened 1 year ago

drkl151 commented 1 year ago

Hello everyone, I have a difficult and most likely stupid question) Maybe someone can suggest how to solve this problem. I imported a character from Character Creator 4 into blender via a plugin, added my custom objects to it and now I want to import from blender back to CC4 via the same plugin, but it swears at armature (? 😅). I made all my custom objects children, but as I understand it, you need to somehow bind their bones, or to be honest, I don’t really understand what needs to be done to import the character without problems. If you have any ideas please let me know :)

image

soupday commented 1 year ago

Character creator needs a very specific structure to bring new objects back into CC4.

All objects must be a direct child of the armature. They each must have an armature modifier which has the armature object set to the characters armature. And must have weighted vertex groups.

Without these Character Creator will either reject the Fbx import, or get it completely wrong, which is why the add-on won't export it. Otherwise you would just be wasting your time.

To fix it: re-parent those 4 objects to the armature. make sure they each have an armature modifier and the Object is set to the character armature. each object is vertex weighted to the character. You can copy vertex weights from the Body to the new objects in weight paint mode.

Then it should export and work in CC4.

drkl151 commented 11 months ago

Thanks for your reply. I did everything as you wrote and the export was completed without problems. But I still can't import it into CC4. I'm trying to load fbx through a plugin and I'm getting this error: Screenshot_3

And when I try to import through the file menu, the import starts, but is interrupted with an error: Screenshot_4

How can I solve this problem and finally import the character from blender into CC4?

soupday commented 11 months ago

It should have written the .json file with the character are you keeping that file with the .fbx? Also the fbxkey is also copied from the original export (if needed)

it generates 3 files that need to be kept together:

Can you check that these three files are exported from Blender.

drkl151 commented 11 months ago

Yes, that's right, there is no json file when exporting, what should I do to ensure that it is exported automatically? )

soupday commented 11 months ago

Well here's the thing. Even if the .json is missing or corrupted from the original CC4 export. The add-on will create a new one when it exports back to CC4, so there really should be a .json file.

Unless the add-on threw an error mid way through exporting. Were there any errors generated, in the system console (Window->Toggle System Console) it should show any errors and where it went wrong.

Edit: A possible long-shot is that Blender doesn't like the folder: Maybe if the folder length is too long or if you're exporting/importing from the root folder of a drive. Blender makes some very odd mistakes when trying to read/write directly from the root folder of a drive, I've never quite found out why.

MOTO4GIT commented 10 months ago

export all objects you want as obj and scal them to 100, then import them in CC as accessories and make parenting in CC