Thanks for the link. That’s actually what I used to retrieve the batchplay descriptor. What confused me was putting it in a function. What I ended up doing with the “get” basic event descriptor from the previous post (as per your suggestion to, specifically, look at the code tab, which helped a lot) was destructuring the output like this:
then I was able to access the coordinates you mentioned via, for example: layerInfo.keyOriginType.keyOriginLineStart.horizontal
which should return a number.
Thanks for that suggestion! That let me consolidate some functionality instead of relying on the layer bounds. This even exposes more properties that a line layer would have, letting me put the function behind some checker to make sure that the right kind of layer is selected.