Setting additional stroke attributes for shapes in a color layer

I am wondering how I can set stroke properties like lineCapStyle, miterLimit and lineJoinStyle for shapes in a color layer. Thanks!

Glyphs only supports some of those attributes. Add some through the UI and then check the format with this script:

print(Layer.selection[0].parent.attributes)

You can add/remove them like this:

path.attributes["strokeWidth"] = 120
path.attributes["lineCapEnd"] = 4
path.attributes["lineCapStart"] = 1

miterLimit and lineJoinStyle are not supported, yet.

Thanks for the swift reply. However, it seems like the lineCapEnd and lineCapStart attributes are ignored when the path is on a color layer. They also disappear from the menu, once you select choose layer type color for a layer.

Is there perhaps a temporary workaround for the other settings?

Yes. This will be greatly improved in the next version.