Is it possible to change the blend layer opacity to 0% via the API?

Hi all,

I’m creating a plugin that draws everything to the canvas using API commands. I can’t seem to work out how to create a node with an opacity that isn’t 100%. I’m aiming to create a node with properties equal to the screenshot below!

I’m setting blendMode and fills at the moment:

textNode.blendMode = “PASS_THROUGH”;
textNode.fills = [{type: ‘SOLID’, color: rgbTextColour}];

Screenshot 2023-11-06 at 10.24.12|464x224

Many thanks,
Antony

Change the opacity property.

1 Like

Thank you so much Tank! Simple question, such a simple answer.