A friend of mine has asked me to write a plug-in which allows them to either add an action which clears the History panel or which enforces a limit on the number of items in the History panel. This is due to memory issues when the number of items is very large.
I don't see a scripting API which allows access to these items, does anybody know if this is possible?
I'm a software developer but have never used Substance Painter before so please consider me an absolute noob

Thank you!
Rick.