this will put object at the center of the layout
set position X = layout.width/2
set position Y = layout.height/2
but if you want at the center of the window
set position X = (ViewportLeft(0)+ViewportRight(0)) / 2
set position Y = (ViewportTop(0)+ViewportBottom(0)) / 2