EpicGamesExt / BlenderTools

Blender addons that improve the game development workflow between Blender and Unreal.
https://epicgamesext.github.io/BlenderTools/
MIT License
2.77k stars 52 forks source link

Send to Unreal - Failed to Send Animations to Unreal 4.25 #221

Closed TrickbagGames closed 3 years ago

TrickbagGames commented 3 years ago

Addon: Send to Unreal Details: Fresh Install of Blender 2.91.2. Paths are set to default values. Steps to Reproduce the Problem: Click Pipeline->Import->Import Assets.(Animation file with Preview mannequin mesh) Move Skeleton to Rig Collection. Click Pipeline->Export-> Send to Unreal. Successfully send to Unreal Engine 4.25. Click Ue4 to Rigify. Select Skeleton as Source. Click Convert. Successfully create rig. Click Pipeline->Export->Send to Unreal. Fail to send to unreal. Click File->Save As. Save File. Restart Blender. Click File->Open. Open File. character mesh and rig is scaled incorrectly.

Error Log: Python: Traceback (most recent call last): File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\operators.py", line 15, in execute export.send2ue(properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 962, in send2ue assets_data = create_import_data(properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 894, in create_import_data action_data = create_action_data(rig_objects, properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 791, in create_action_data fbx_file_paths = export_action(rig_object, action_name, properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 711, in export_action export_fbx_files(fbx_file_paths, properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 484, in export_fbx_files context = scale_rig_objects(properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 410, in scale_rig_objects context = duplicate_objects_for_export(scene_scale, scale_factor, context, properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 323, in duplicate_objects_for_export scale_control_rig(scale_factor, properties) File "C:\Users\Brandon\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\send2ue\functions\export.py", line 295, in scale_control_rig bpy.ops.ue2rigify.remove_constraints() File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy\ops.py", line 132, in call ret = _op_call(self.idname_py(), None, kw) AttributeError: Calling operator "bpy.ops.ue2rigify.remove_constraints" error, could not be found

location: :-1

OS: Windows Addon Version: Send to Unreal 1.6.3 Blender Version: Blender 2.91.2 Unreal Version: Unreal 4.25

james-baber commented 3 years ago

@TrickbagGames Hmm and UE to Rigify never gets deactivated some how? That is the only thing a can think of why bpy.ops.ue2rigify.remove_constraints() would not be found. Can you check?

TrickbagGames commented 3 years ago

I checked if UE to rigify was deactivated before and after the export and it was still activated.

james-baber commented 3 years ago

@TrickbagGames I followed your steps and I can not reproduce this. Perhaps if your can get a blend that is consitently producing this output when the send to unreal operator is triggered, I can take a look and find the cause