Is there a way to toggle scenes and filters on/off in OBS

Is there a way to have a command toggle a scene/filter on and off? For example when someone redeems a color change filter with twitch points on my stream I want it to turn it on. And the next time someone redeems that same color change I want it to turn off. Is there a way to do this?

Thank you.

Hi…that is possible. They changed a lot with Websocket 5 and the wording.

Use the Source Filter Visibility set → Type your scene in the scene field (ignore the errors popping up) → the filters should appear in the filter dropdown

Thanks for the reply! I was able to find it to set the filters. And then is there a way to make it so when it’s redeemed once it turns the filter on and then if it’s redeemed a second time it turns the filter off? Right now I can only find how to make it turn on when redeemed and then turn off after a set amount of time.

Thanks again you are the best and always so damn helpful to everyone.

Unfortunately, you would need 2 separate commands as it doesn’t have a toggle