Add Chromium-only Blender WebEngine parity work
This commit is contained in:
16
blender-5.2.0/doc/python_api/examples/bpy.ops.3.py
Normal file
16
blender-5.2.0/doc/python_api/examples/bpy.ops.3.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
It is also possible to run an operator in a particular part of the user
|
||||
interface. For this we need to pass the window, area and sometimes a region.
|
||||
"""
|
||||
|
||||
# Maximize 3d view in all windows.
|
||||
import bpy
|
||||
from bpy import context
|
||||
|
||||
for window in context.window_manager.windows:
|
||||
screen = window.screen
|
||||
for area in screen.areas:
|
||||
if area.type == 'VIEW_3D':
|
||||
with context.temp_override(window=window, area=area):
|
||||
bpy.ops.screen.screen_full_area()
|
||||
break
|
||||
Reference in New Issue
Block a user