Skip to main content

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 = t{type: ‘SOLID’, color: rgbTextColour}];


Screenshot 2023-11-06 at 10.24.12|464x224


Many thanks,

Antony

Change the opacity property.

figma.com

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


Reply