Skip to main content
Question

Correct way to bind variables to corner radius?

  • November 2, 2023
  • 1 reply
  • 628 views

Darragh_Burke

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:


1 reply

Darragh_Burke

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


Reply


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