Page MenuHome

View -> Lock Time to Other Windows does not maintain scale when CTRL+TAB between two animation editor modes.
Confirmed, NormalPublicKNOWN ISSUE

Description

System Information
Operating system: Manjaro Linux
Graphics card: nVidia

Blender Version
Broken: (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen)
Worked: (optional)

Short description of error
View -> Lock Time to Other Windows does not maintain scale when CTRL+TAB between two animation editor modes.

Exact steps for others to reproduce the error
Expand open the Timeline editor, now adjust the horizontal scale of the view (squeeze or expand), then Ctrl+TAB to swith to Graph Editor mode. Notice the scale does not stay in sych as it does when they are separate windows.

Related Objects

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Tue, Jan 14, 3:16 PM

Can confirm the behavior.

This is on the edge of being a bug [ or a feature request / known limitation -- since that option doesnt promise to lock time to the same window, only others ;) ] however, but will confirm for now...

Quickly tried something stupid as:

1
2
3diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c
4index 1637f8cfed5..22093c52752 100644
5--- a/source/blender/makesrna/intern/rna_screen.c
6+++ b/source/blender/makesrna/intern/rna_screen.c
7@@ -145,6 +145,11 @@ static void rna_Area_type_set(PointerRNA *ptr, int value)
8
9 ScrArea *sa = (ScrArea *)ptr->data;
10 sa->butspacetype = value;
11+
12+ if (ELEM(sa->spacetype, SPACE_GRAPH, SPACE_ACTION)) {
13+ ARegion *ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
14+ UI_view2d_sync(NULL, sa, &ar->v2d, V2D_LOCK_COPY);
15+ }
16 }
17
18 static void rna_Area_type_update(bContext *C, PointerRNA *ptr)

but needs more work (or some completely different solution)

@Sybren A. Stüvel (sybren): know limitation?

Sybren A. Stüvel (sybren) claimed this task.

Yeah, this is not a bug; it would be if the option was called "lock view range when toggling editors", but it isn't. You could argue that ctrl+tab should maintain the range of the editor, but that's just not implemented.

Richard Antalik (ISS) reopened this task as Confirmed.Tue, Jan 14, 9:29 PM

Manual says:

Lock Time to Other Windows
It synchronizes the horizontal panning and scale of the current editor with the other editors (Graph, Dope Sheet, NLA) when this option is set. That way you always have these editors showing >an identical part of the time you work on.

https://docs.blender.org/manual/en/latest/editors/timeline.html#view-menu

Thank you all for looking into this. I see this as a powerful feature that is not present in other applications.

Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Known Issue".Wed, Jan 15, 4:19 PM

@Sybren A. Stüvel (sybren) @Bastien Montagne (mont29) @Richard Angert (richardangert) @Philipp Oeser (lichtwerk)
Finally getting to spend more time in code (python) lately. So if any related bits to this issue are exposed to python, point me in a direction and I'll look there. I have ideas for related tools, which I'm hoping I can handle in python (i.e. making graph editor / dope sheet timeline scale presets).

Thanks again for the attention to this feature. I do believe it will be a great efficiency gain, and worth having on "the list".

Hope i can help.

I'm not too familiar with the UI code, but from @Philipp Oeser (lichtwerk)'s patch it looks like the syncing is all done in C.