# How to split a certain area using python?

My screen has different areas: one 3D View and two Image Editors.

I would like to split one of the Image Editors but when I call the bpy.ops.screen.area_split() operator, it's always going to split the 3D View for whatever reason.

Does anyone know how I can split a certain area?

• – batFINGER Mar 13 at 8:57

Iterate through all visible areas and override the context when calling area_split() operator:
import bpy