0
$\begingroup$

Pertaining to this question, from which I got the following code to change the 3D View to orthographic top view for the purposes of projecting and snapping vertices to other objects in preparation for texture baking:

import bpy

for area in bpy.context.screen.areas:
    if area.type == "VIEW_3D":
        override = bpy.context.copy()
        override["area"] = area
        bpy.ops.view3d.view_axis(override, type='TOP', align_active=False) 
        if  area.spaces.active.region_3d.is_perspective:
            bpy.ops.view3d.view_persportho(override)

How could I "save" the 3D View parameters as they are before running the script so I can then return the user to their original view when the baking is complete?

$\endgroup$
2
  • 2
    $\begingroup$ Hello ! I don't know if this will solve your problem but this should help you blender.stackexchange.com/a/250935/86891 $\endgroup$
    – Gorgious
    Sep 2 at 18:46
  • $\begingroup$ @Gorgious Thank you! There's a lot to get through there. I'd best get reading! $\endgroup$
    – gcs_dev
    Sep 3 at 1:58

0

You must log in to answer this question.

Browse other questions tagged .