feat(importing): Add better FBX bone orientations operator and accessory bone deletion

- Add new `apply_better_fbx_orientations` operator as standalone UI action for applying bone orientations
- Add "Delete Accessory Bones" property and UI toggle in EXTRAS panel for optional bone cleanup
- Move bone orientation logic from `modify_armature` execute method to new dedicated operator
- Refactor accessory bone deletion into separate method callable from new operator
- Update panel UI to show better FBX bones operator with delete accessory bones toggle option
- Register new operator in `__init__.py` and export from modifyarmature module
- Update interface dictionaries (English, Japanese, Chinese) with new UI strings
- Enable better FBX orientations and accessory deletion only for Koikatsu armature (C) selection
- Add detailed logging for bone operation counts and status tracking
This commit is contained in:
2025-12-07 12:47:55 +08:00
parent d8015c348f
commit 63e9a6fb00
11 changed files with 127 additions and 37 deletions

View File

@@ -112,6 +112,11 @@ translation_dictionary = {
'rigify_convert' : "Convert for Rigify",
'rigify_convert_tt' : "Runs several scripts to convert a KKBP armature to be Rigify compatible",
'better_fbx_bones' : "Apply Better FBX Bone Orientations",
'better_fbx_bones_tt' : "Modifies bone orientations to be more natural. This makes bones extend along limbs instead of pointing upward",
'delete_accessory_bones' : "Delete Accessory Bones",
'delete_accessory_bones_tt' : "When enabled, applying bone orientations will also delete hair, clothing and other accessory bones, keeping only core body bones",
'sep_eye' : "Separate Eyes and Eyebrows",
'sep_eye_tt' : "Separates the Eyes and Eyebrows from the Body object and links the shapekeys to the Body object. Useful for when you want to make eyes or eyebrows appear through the hair using the Cryptomatte features in the compositor",
'bone_visibility' : "Show bones for current outfit",