Skip to main content
Question

Plugin API: "gradientStops" array empty for objects created before v1.92 update


After your v1.92 update, old objects with gradient no longer receive the “gradientStops” data, while the newly created ones work well.

I think you might need to run a data migration for older objects as copy-pasting old objects does not solve the problem.

This topic has been closed for comments

6 replies

BennoDev
  • 8 replies
  • April 26, 2024

I encountered the same issue. Old nodes with gradients lack this array or have it empty. In contrast, newly created nodes function correctly, and updating an old node’s gradient also fills its “gradientStops.” There seems to be a propagation error in the plugin-level?


Adam_Plouff

+1
I’m encountering the same issue starting today.


Kyrie_Chen

We encountered the same issue after updating the app version last week. Unfortunately, when I emailed Figma about the problem, I received a response stating that they were on a weekend break. It seems we may need to wait a little longer.


LittleJohnny_Zhou

+1
We encountered the same issue, This seems to be due to the newly added ‘boundVariables’ parameter being missing in the old node, but the solid paint node that also added the ‘boundVariables’ parameter does not have this problem. Because ‘boundVariables’ is an optional parameter.


+1
And I found that it occurs only with the plugin api, while rest api is used as expected.


LittleJohnny_Zhou

It seems that this BUG has been fixed


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