API

Fast synchronization objects visibility in the viewport and for rendering

When working with a complex scene with many objects, the synchronization of meshes visibility could be lost between the scene in the viewport area and the render. With just a few lines of code, we can quickly synchronize objects visibility in the viewport and on the final render.

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.