I’m trying to join two areas (split horizontally) but don’t seem to understand why it’s not working…
def execute(self, context): area1 = bpy.context.screen.areas area2 = bpy.context.screen.areas[-1] bpy.ops.screen.area_join(cursor=(area1.y, area2.y))
I tried all 16 combinations, some of them joined the areas but worked only once when I ran the code (not when I called the operator, strangely), but if I drag another screen to try again. It’s not working anymore.
What is the “cursor=” expecting as arguments?