t = GetLayerStyle(id)
Please note that this command always queries all attributes so it can sometimes get quite slow. If you need only some basic information about a layer, it could be faster to use GetAttribute() instead.
t = GetLayerStyle(1)
Print("This layer is at position", t.x, ":", t.y, "!")
The code above queries the style of layer 1 and displays its position
then.