Script to restore Genesis bone orientation on imported rigs (fixes pose breakage)
When importing non-Genesis rigs into DAZ Studio (FBX / Blender), DAZ preserves bone names but changes local bone orientation and rotation order, which causes Genesis pose files to twist or break even when the skeleton matches. I had Claude (an AI) write a script that copies bone orientation, rotation order, and end point data from a Genesis figure to another figure based on matching bone names, restoring correct Genesis pose behaviour. This pairs especially well with the Blender → DAZ Studio plugin (https://www.daz3d.com/blender-to-daz-studio-plugin), which is important because it preserves Genesis bone naming and hierarchy when rigging third-party meshes to a Genesis skeleton in Blender and importing into DAZ Studio — but DAZ still alters bone orientation on import, which this script fixes as the final step.
This script is designed to be used to correct the posing functionality (with exsisting genesis poses) of a 3rd party model that has already been rigged to a genesis skeleton in blender and then imported using Blender to Daz Studio Plugin.

