But this gets an error: Error: in set_strokes: Expected “strokes.[0].color” to have type {r: number, g: number, b: number} but got additional property “a”.
Right now I’m using opacity, but this controls the layer opacity not the color’s alpha channel.
As you may have noticed in the Plugin API documentation, opacity instead of alpha channel is only used for SolidPaint.
Could you share the code where you change the opacity? You are most likely changing the opacity of the node and not the opacity property of the strokes object.