This is a Lua script useful as a script in OBS studio that would let you enable or disable a filter when switching a scene
Assume you have configured two scenes that they share one common resource like a video source.
For some resources you have to re-use a source like a webcam or capture card source.
For each scene you would like to have two different "Image/Mask blend" filters.
With this script you can set after selecting a specific scene which filter should be activated or deactivated.
For this example I edited the script and changed the variable "totalSetting" to 2.