# Scripting: Check for automation on master track?

**URL:** <https://qa.fmod.com/t/scripting-check-for-automation-on-master-track/22733>\
**Category:** FMOD Studio\
**Tags:** studio-scripting-api\
**Created:** [March 26, 2025, 10:39am UTC](https://qa.fmod.com/t/scripting-check-for-automation-on-master-track/22733 "2025-03-26T10:39:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![deHaan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dehaan/32/68_2.png) [@deHaan](https://qa.fmod.com/u/deHaan)\
**Post date:** [March 27, 2025, 11:06am UTC](https://qa.fmod.com/t/scripting-check-for-automation-on-master-track/22733/4 "2025-03-27T11:06:21Z")

</div>

Was able to find it like this, which might be a horrible way to do it, but seems to work at least. Wasn’t able to look at effects inside effect chains though, so made [a separate post about that](https://qa.fmod.com/t/scripting-loop-through-content-of-effect-chain/22737).

```auto
        function checkEffectForOcclusionParameter(effect) {
            if (effect.automators && effect.automators.length > 0) {
                for (var i = 0; i < effect.automators.length; i++) {
                    var automator = effect.automators[i];
                    if (automator.automationCurves && automator.automationCurves.length > 0) {
                        for (var j = 0; j < automator.automationCurves.length; j++) {
                            var curve = automator.automationCurves[j];
                            if (curve.parameter && curve.parameter.presetOwner && curve.parameter.presetOwner.name === "Occlusion") {
                                return true;
                            }
                        }
                    }
                }
            }
            return false;
        }

```

---

_[View the full topic](https://qa.fmod.com/t/scripting-check-for-automation-on-master-track/22733)._
