Created
February 27, 2025 19:22
-
-
Save yrns/28b9335d00d8d4a6aa5f3c078400d990 to your computer and use it in GitHub Desktop.
Reset the camera view in Blender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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