that makes perfect sense.
Can you please help with the second part of my question regarding the Marker Head setting. I want to adjust the behavior of the script based on whether the marker head is in the middle or the ends. I have not found a request that returns the state of that setting. Thanks.