Hi! I’ve been using remote scripts with Glyphs as a module for a while but now I’m trying to read and write instances info but I don’t manage to get it work.
Basically I’m trying to change the name with:
instance.name() = "myName"
But I’m getting:
SyntaxError: can't assign to function call
And how is possible to write custom parameters?
Thanks in advance.
You need to use the default PyObjC methods.
The wrapper is not available in outside of Glyphs
Hi Georg, thanks. Can you point where I can see the PyObjC methods?
Those are literal translations of the objc methods. You can check the core spec: https://docu.glyphsapp.com/Core/index.html
And the pyobjc into exposing how to convert the names:
Because the core docs are a bit out of date, you might like to check the header files inside Glyphs (in the GlyphsCore framework)