I want to keep the modifications of the metarig (meging/deleting bones, adding twists etc). I only want to skip the posing, since it already posed as I want.
what I could do with my already rigged character (which also had the metarig kept): I exported my character to mixamo, gave it a rig and set up the uefy workflow except i used my original metarig. I didn’t need to pose my character to ue4 pose and the script succesfully built the unreal skeleton, worked fine. So I thought that getting the mixamo rig and stuff could be skipped completely.
as i said I don’t care about rolls, pose … what I need is the mannequin hierarchy, ik bones in an easily exportable format built under rigify. Then it will be retargeted in ue4 anyway. Watching how your script works it seems to me it could be used this way.