__doc__="If mesh is deform when importing to unreal engine try this. It rebuild the bones one at the time by select one armature object scrape to raw setup build."
__doc__="""If mesh is deform when importing to unreal engine try this. It rebuild the bones one at the time by select one armature object scrape to raw setup build."""
definvoke(self,context,event):
definvoke(self,context,event):
print("----------------------------------------")
print("Init Rebuild Armature...")
bselected=False
forobjinbpy.data.objects:
forobjinbpy.data.objects:
ifobj.type=='ARMATURE'andobj.select==True:
ifobj.type=='ARMATURE'andobj.select==True:
currentbone=[]#select armature for roll copy
currentbone=[]#select armature for roll copy
...
@@ -2067,8 +2068,14 @@ class OBJECT_OT_UTRebuildArmature(bpy.types.Operator):
...
@@ -2067,8 +2068,14 @@ class OBJECT_OT_UTRebuildArmature(bpy.types.Operator):
print("New Bone Count",len(ob_new.data.edit_bones))
print("New Bone Count",len(ob_new.data.edit_bones))