Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Font = Glyphs.font
  2.  
  3. Glyphs.clearLog()
  4.  
  5. currentGraphicView = Font.currentTab.graphicView()
  6. #thisActivePosition = currentGraphicView.activePosition() # This could be used to just the visibleRect
  7. thisVisibleRect = currentGraphicView.visibleRect()
  8. thisScale = currentGraphicView.scale()
  9.  
  10. for eachTab in Font.tabs:
  11. thisGraphicView = eachTab.graphicView()
  12. if thisGraphicView == currentGraphicView:
  13. continue
  14. thisGraphicView.zoomViewToAbsoluteScale_(thisScale)
  15. thisGraphicView.scrollRectToVisible_(thisVisibleRect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement