isTitleEffectActive would return [black,white] as boolean
- for black to be true there must be at least one title effect active with name "BLACK" or "BLACK OUT" or "BLACK FADED"
- for white to be true there must be at least one title effect active with name "WHITE OUT"
Why a general check instead of per layer:
According to the docu one cannot reference titleXXX with a layer id:
> Effects created with titleText, titleRsc and titleObj commands do not have a numbered layer, so they are represented as -1 layer in the result.
So the engine needs to loop through all active title effects (cutXXX and titleXXX) internally to determine if any has set a black/white screen.
Related:
https://community.bistudio.com/wiki/allCutLayers
https://community.bistudio.com/wiki/setTitleEffect