Skip to main content
Solved

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

  • November 6, 2023
  • 2 replies
  • 352 views

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

Best answer by tank666

Change the opacity property.

figma.com
This topic has been closed for replies.

2 replies

tank666
  • Answer
  • November 6, 2023

Change the opacity property.

figma.com

  • Author
  • November 6, 2023

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