Skip to main content
November 6, 2023
Solved

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

  • November 6, 2023
  • 2 replies
  • 411 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

This topic has been closed for replies.
Best answer by tank666

Change the opacity property.

figma.com

2 replies

tank666
tank666Answer
November 6, 2023

Change the opacity property.

figma.com
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
AntonyAuthor
November 6, 2023

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