Hi, everyone. Does anyone know of a way to change the indices of bones in side an armature? I have two hierarchies in my armature, and I would like one to be ordered above the other. I thought it was ordered alphabetically, but that doesn’t seem to be the case.
In case you want the back story…
The reason for the specific order is I’m trying a workaround in my exporter. I’m exporting to THREE.js format and there is a hard bone limit which, with my IK controllers, I’ve exceeded. So I have two separate hierarchies–one for the IK controllers and one for the FK bones that are deforming the mesh and are driven by the IK. The workaround I’m attempting is to export the bones, then remove the IK bones from the exported file. Unfortunately, the IK hierarchy is written to the bone array first, so if I remove those the indices the rest of the bones are looking for are wrong–each bone is looking for its parent based on the array index. So if I remove elements from the beginning of an array, the indices for later items will be incorrect.
However, if the IK rig is appended to the end of the array, I can remove it with (presumably) little trouble.