Blender

Overriding the selected objects list for the transform.translate operator

To execute an operator from a context that was not intended for it correctly, it is necessary to override the context for it using bpy.context.temp_override.() selected objects. However, using temp_override, we can override not only the context of the operator call, but also, for example, the stack of selected objects.