Convert object rotation to unreal

Hi,

I need to convert blender rotation matrixes to unreal rotation matrixes

I am not sure of that axis_conversion function parameters. I just cannot make it work no matter what I feed to it

mm = bpy_extras.io_utils.axis_conversion(from_forward='Y', from_up='Z', to_forward='-Z', to_up='Y')
t = mm * someobject.matrix_world.to_3x3()
unrealRot = t.to_euler('XYZ')

anyone already tried this ? am I missing something ?

thanks for your precious help

no takers for this one?