File "ambf_addon.py", line 120, in set_view_transform_orientation_to_local:
bpy.context.scene.transform_orientation_slots[0].type = 'LOCAL'
Attribute Error: '_Restrict Context' object has not attribute 'scene'
This line works for Blender 3.x and not for 2.9x.