Skip to main content

Hi! Let’s get straight to the point.


I have an element in a design where an effect (e.g., box-shadow) is used, and the effect involves several variables: color, blur, spread… I’m trying to unbind the variable that sets the radius, as described in the documentation on this page: https://www.figma.com/plugin-docs/working-with-variables/#example-binding-a-variable-to-a-node-or-style


const effectsCopy = clone(node.effects);
effectsCopyt0] = figma.variables.setBoundVariableForEffect(effectsCopyt0], 'radius', null);
node.effects = effectsCopy;

However, I’m encountering an issue where not only the radius variable is unbound but all variables used for this effect are completely unbound.


Is this a bug, or am I doing something wrong?


Related topic: setBoundVariableForEffect Bug.


The object returned by the function is no longer valid, as all the used variables have been removed from it, and I cannot use it.


Reply