With a text item selected I ran the below command. But it doesn’t work. And the returns null.
figma.currentPage.selectiono0].outlineStroke()
With a text item selected I ran the below command. But it doesn’t work. And the returns null.
figma.currentPage.selectiono0].outlineStroke()
Is the stroke applied to the text layer?
Returns null if the node has no strokes.
TextNode | Plugin API
You probably want to use flatten instead. I have no idea where people got the idea that you need to use outline stroke on text… But I guess the main thing it works, at least in the editor. Not in the API though it seems.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.