Scripting: Check for automation on master track?

Thank you for sharing the solution.

I am glad to hear you got it working!

Your function is totally valid for what you’re trying to do, and it’s actually not horrible at all!