API for changing layer type to color?

I’m trying to make a stroke font as Georg outlined here:

But it’s very tedious to change the layers one by one, I couldn’t find the API documentation for changing a layer type to ‘Color’.

I think it is in GSLayer.attributes: Glyphs.app Python Scripting API Documentation — Glyphs.app Python Scripting API 3.2 documentation

You mean switching “Color” in the layer panel? Then Jens is right.