Page MenuHome

Quadview views inaccessible with python except bottom right view
Closed, ResolvedPublic

Description

Area.spaces[0].region_quadview of a View3D has no members for every of the four views, but refers directly to the right bottom view. All other 3 seem inaccessible. Or am I overlooking something?

There are several WINDOW regions in quadview mode, but there's no way to get the region (space?) data from it in python.

It's pretty arbitrary to have the bottom right one adjustable, 'cause the TOP right one is the one you would normally navigate.

Event Timeline

codemanx created this task.Mar 7 2014, 9:55 PM
codemanx raised the priority of this task from to 90.
codemanx updated the task description. (Show Details)
codemanx edited a custom field.
codemanx added a subscriber: codemanx.
Bastien Montagne (mont29) lowered the priority of this task from 90 to 50.Mar 8 2014, 3:43 PM

Yep, RNA code is a bit odd, rna_SpaceView3D_region_quadview_get() returns the region just before the last one (last one being the "hidden" region that gathers the four quaded views, I guess)…

Should not be hard to make it an 4-elements array, returning regions -5 to -2, Campbell, Brecht, do you know good reason to current behavior?

Mmmh… We can’t have arrays of pointers in RNA… but we could have region_quadview1, region_quadview2, etc?

Simple patch giving access to all view of quad (right/top/front): P21

Note that the conventions for top/front etc are just conventions, you can for example set quadview, unlock and set all different axis views, then lock again.

New patch: P23 (made it into a 4 items collection).

Bastien Montagne (mont29) lowered the priority of this task from 50 to Normal.Mar 11 2014, 9:28 AM

@Bastien Montagne (mont29) last patch LGTM - minor suggestion noted in at patch page.

Bastien Montagne (mont29) changed the task status from Unknown Status to Resolved.Mar 11 2014, 3:25 PM

Closed by commit rBa2ffd8e4234e.