I’m trying a selection tool template, but it gives me this error in the default state.
Traceback (most recent call last):
File “plugin.py”, line 54, in mouseDown_
loc = self.editViewController.graphicView.getActiveLocation_(theEvent) AttributeError: ‘objc.native_selector’ object has no attribute ‘graphicView’
I can print theEvent fine, so that doesn’t seem to be the problem. Could anyone help me troubleshoot this?
I solved the part by changing this
self.editViewController.graphicView
to this
Glyphs.font.currentTab.graphicView()
but I am not sure if this is intended.
After that, I am struggling with the dragging part. This particular line
offset = subtractPoints(mousePosition, self.draggStart)
gives me an error:
File “GlyphsApp/GlyphsApp/init.py”, line 12014, in subtractPoints TypeError: ‘objc.native_selector’ object is not subscriptable