Feature Request: Expression Editor in Operators

I needed to do two multiplications in Grasshopper, so I tried to just put one of them into the input of the second multiplication, but there is no place to put an equation in operators, they don’t have the Expression Editor.

It would be nice if there was a way, when one of the inputs needs to be modified by a constant.

My first multiplication multiplies by -2

So I wanted to put that expression in the B input of the second multiplication. Of course trying to put it in the Data Item didn’t work, it would need to have the expression editor.
Screenshot 2023-01-09 050552

I don’t know why expressions were left out of the operators, there are lots of valid reasons to want to use an expression on the input of an operator.

1 Like

I think the issue comes trom the fact that operators accept multiple data types (vectors, numbers, points), and therefore the parameter type is Data instead of Number, the former of which doesn’t support expressions.

If you have a formula with even a few operations, using Expression can be handy.

As an alternative you could also add a Number parameter, it still saves some space.

@magicteddy Thank you for the explanation, that does make sense that an expression with multiple data types would not know how to be applied. Thank you for the alternative suggestions!