Skip to main content
Darragh_Burke
November 2, 2023
Question

Correct way to bind variables to corner radius?

  • November 2, 2023
  • 1 reply
  • 877 views

I’d like to bind a variable from my plugin to a corner radius property. I implemented this like so:

const CORNER_RADIUS_PROPERTIES = [
  'bottomLeftRadius',
  'bottomRightRadius',
  'topLeftRadius',
  'topRightRadius',
] as const;
for (const property of CORNER_RADIUS_PROPERTIES) {
      node.setBoundVariable(property, variable.id);
}

However, when I use this method, the property picker in the UI does not render as having selected the variable. It will show the correct numeric value, but won’t show that any variable is selected. Even when I dive into the individual properties, it won’t show any of the variables as selected.

Is this just a UI bug? Or is this indicative of an error applying the variable?

What I would expect to see:

What I actually see:


This topic has been closed for replies.

1 reply

Darragh_Burke
November 3, 2023

I’m not seeing this issue anymore today, despite not making any changes to my code. Very strange, will update here if it resurfaces!