I have solved the issue and wanted to share my findings here (edited with AI for clarity):
I wanted to share a possible bug I found in the current inZOI Modkit hair import process.
Custom skeletal hairs were importing successfully, but in-game they would wobble or shift instead of staying firmly attached to the head. I originally thought the issue was caused by Blender weights, vertex groups, or FBX export settings, so I tested multiple approaches there without success.
After reviewing the Modkit output log and the ImportHairSkeletalMesh.py script, the issue appears to be connected to the automatic LOD bone-removal process.
The script calls:
apply_skm_minus_da_remove_bones_from_lod_settings(
mesh,
LOD_SETTINGS_ASSET_PATH
)
This calculates per-LOD bones_to_remove. In my log, one hair showed very large bone removals, for example:
LOD1: SKM=347, DA=149, DA_in_SKM=20, REMOVE=316
LOD3: SKM=347, DA=3, DA_in_SKM=3, REMOVE=333
The protected-bone list includes the spine, neck, pelvis, and clavicle bones, but head is not included.
As a test, I backed up the original script and disabled only the apply_skm_minus_da_remove_bones_from_lod_settings() call. I then restarted the Modkit and imported fresh copies of two different hairstyles that previously had the wobbling issue.
Both hairs worked correctly afterward and stayed firmly attached to the head.
Another creator told me they experienced the same wobbling problem with the current Modkit and my fixed script worked for them too, so this may not be isolated to one mesh or workflow.
For anyone on the development side looking into this, it may be worth reviewing the current per-LOD bones_to_remove logic for hair skeletal meshes, especially how the LOD bone list is being interpreted and how the head bone is handled.
I’m going to test a third hairstyle as well, but so far this fix has worked consistently on two separate hairs.
I can also provide my output log and the modified test version of ImportHairSkeletalMesh.py if that would help.