Creating rectangle sliders to adjust length and width of centered rectangle

I have created a rectangle from a centerpoint.(currently 0,0,0)
I now want to put its length and width on sliders.

Putting sliders to the component means the rectangle now draws from its corner which means I have to move it to center it again.

I have considered control points, explode, moving but it should be easier than this surely…
any help appreciated,
thanks

one way:

the asterisked X & Y inputs on constructPoint have the expression -x/2

2 Likes

Brilliant!!
Thanks for replying so quickly
I have spent too much time on this:grinning:

1 Like

second way:

The expression input for First Domain (A) = -x/2, Domain End (B) = x/2

1 Like

Thanks