Skip to main content
piusyikyu
New Participant
Apr 26, 2024 10:44 AM UTC
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 replies.

6 replies

BennoDev
Apr 26, 2024 11:53 AM UTC

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
Apr 26, 2024 2:11 PM UTC

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

Kyrie_Chen
Apr 28, 2024 2:13 AM UTC

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
New Participant
Apr 28, 2024 4:02 AM UTC

+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.

Apr 28, 2024 8:22 AM UTC

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

LittleJohnny_Zhou
New Participant
May 6, 2024 1:44 AM UTC

It seems that this BUG has been fixed