Expressions and formulas on UI value input

Tags: #<Tag:0x00007f2509b2c840>

Hi all,

I think would be wonderful to be able to write expressions or formulas on the input values at the cables UI.

So instead of manually declare an exact value, we can write an expression and the UI will automatically write the solution as the input value.

Would be really handy for converting values, playing with scales, and input more complex and precise numbers.

  • Setting milliseconds: write = [1000 * 60 * 4] -> value 240000
  • Change viewport size: write = [1/3] -> value 0.3333333
  • Modify-Scale an existing value by a factor: original [88.679] > write [/ 2] -> value 44.3395

I hope you understand :wink:

Hi Action,
We’re already working on a version of this op for numbers and for arrays.
They’ll be done in the near future.
Thanks for the suggestion.

Hi Andro,

We’re already working on a version of this op for numbers and for arrays.

But will be an op or a general rule for all the value input?

I think this will only make sense as an op.
Sometimes people will want to write a mathematical expression using more than one number.