I compiled Blender as python module to be able to do unit testing of a plugin I'm working on. The issue is that bpy.context.area
and other context values do not seem to populate so I can't run operators that require a specific area (like bpy.ops.screen.region_quadviews()
).
How do I set the active area
and region
in Blender?
bpy.data.screen.areas
and further. There's just no way to set any sort of active one. I've tried usingcursor_warp
to place the "cursor" over them, as well as some other ones that talk about "cycling the context" but nothing seems to work. There might be a new function in 2.79 that handles it that I'm rebuilding to test out $\endgroup$