GlyphsToolRotate

Hi,

I want to rotate components. I’ve found this code by @mekkablue

myController = Glyphs.currentDocument.windowController()
rotateToolClass = NSClassFromString("GlyphsToolRotate")
myRotateTool = myController.toolForClass_( rotateToolClass )

How can I rotate my component? myRotateTool.setRotation(45) doesn’t work :smiley:

Thx.

You need to apply an affine transformation. There is code that autocompletes in my Python for Glyphs repo. Find the link on the Extend page.

Yes, I have already found it. Thanks :sunglasses:

1 Like