Forked from weiweihuanghuang/Set Same View in All Tabs.py
Last active
February 8, 2016 20:03
-
-
Save schriftgestalt/b823a429b973cebac0e7 to your computer and use it in GitHub Desktop.
Set Same View in All Tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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