I'm new in this thing of doing sketch plugins. I've been playing with the API but I find that the methods of the
Style class are write only. You can add new fills or new borders, but I don't find a way to read the current values. I've also tried to access the wrapped object by using
log(layer.style.sketchObject) and with that I see that it's an instance of
MSStyle, but that class is not documented. I've seen somebody in GitHub that dumped the header files so I can take a look to
MSStyle.h, but I don't understand what to expect from each method.
What I need is basically getting what you get with the context menu → Copy CSS attributes, but from an Sketch Plugin. How can I do that?