Skip to main content
Solved

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

Best answer by tank666

Change the opacity property.

figma.com
View original

2 replies

tank666
  • 4854 replies
  • Answer
  • November 6, 2023

Change the opacity property.

figma.com

  • Author
  • 1 reply
  • November 6, 2023

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings