Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schriftgestalt/b823a429b973cebac0e7 to your computer and use it in GitHub Desktop.
Save schriftgestalt/b823a429b973cebac0e7 to your computer and use it in GitHub Desktop.
Set Same View in All Tabs
Font = Glyphs.font
Glyphs.clearLog()
currentGraphicView = Font.currentTab.graphicView()
#thisActivePosition = currentGraphicView.activePosition() # This could be used to just the visibleRect
thisVisibleRect = currentGraphicView.visibleRect()
thisScale = currentGraphicView.scale()
for eachTab in Font.tabs:
thisGraphicView = eachTab.graphicView()
if thisGraphicView == currentGraphicView:
continue
thisGraphicView.zoomViewToAbsoluteScale_(thisScale)
thisGraphicView.scrollRectToVisible_(thisVisibleRect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment