Example: GetActiveLayer
To find out the active layers on the current page of document 5:
[GetActiveLayer(5)]
A sample reply:
1029, 0
This means that the document has an active raster layer with an identifer of 1029, but does not contain an active edit layer.