Created
January 28, 2016 11:09
-
-
Save weiweihuanghuang/9a89b4d9080781c064d3 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 | |
Doc = Glyphs.currentDocument | |
Glyphs.clearLog() | |
currentGraphicView = Glyphs.currentDocument.windowController().activeEditViewController().graphicView() | |
thisActivePosition = currentGraphicView.activePosition() | |
thisVisibleRect = currentGraphicView.visibleRect() | |
thisScale = currentGraphicView.scale() | |
for eachTab in Font.tabs: | |
thisGraphicView = eachTab.graphicView() | |
# thisGraphicView.zoomViewToRect_( thisVisibleRect ) | |
thisGraphicView.setActivePosition_(thisActivePosition) | |
thisGraphicView.zoomViewToAbsoluteScale_(thisScale) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment