Retreive substition drawing's mark state via scripting

Hi,

I think that it would be cool if there was the possibility to retreive a substition drawing’s mark state (“Key”,“Breakdown”,“In-Between”,“RetakeKey”,“RetakeBD” and “RetakeIB”) via scripting.

Related topic:
https://forums.toonboom.com/t/retreive-and-set-layers-expand-collapse-state-via-scripting/19444

Somewhat related topic:
https://forums.toonboom.com/t/add-text-to-frame-markers/17573