Skip to content

Instantly share code, notes, and snippets.

@yrns
Created February 27, 2025 19:22
Show Gist options
  • Save yrns/28b9335d00d8d4a6aa5f3c078400d990 to your computer and use it in GitHub Desktop.
Save yrns/28b9335d00d8d4a6aa5f3c078400d990 to your computer and use it in GitHub Desktop.
Reset the camera view in Blender
import bpy
for area in bpy.context.screen.areas:
for space in area.spaces:
if isinstance(space, bpy.types.SpaceView3D):
space.region_3d.view_camera_offset = (0, 0)
space.region_3d.view_camera_zoom = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment