that is a bit complicated. In general, an object can define effects if @OverrideEffect=True. However, if the object is on top of the hierarchy and has no ancestor that can have effects, it is possible that @OverrideEffect=False for those.
With WAAPI,
if @OverrideEffect=True, then the object can have effects
if @OverrideEffect=False, then you need to query all ancestors for their OveerideEffect property:
args = {
"from": {
"path": [
'\\Actor-Mixer Hierarchy\\Default Work Unit\\MySound'
]
},
"transform": [{
"select": ['ancestors']
}]
}
options = {
"return": [
"@OverrideEffect"
]
}
And see if any of them has @OverrideEffect. If no found, then the object can have effects.