Enable and disable filter with script?

tchongass

New Member
How do i enable and disable a filter from a source, like for example disable the existing LUT filter from a source?


function enable_indicator(num)
local group = get_group_as_scene("Instance " .. num)
if group == nil then
return
end
local si = obs.obs_scene_find_source(group, "Instance " .. num .. " Indicator")
local si2 = obs.obs_scene_find_source(group, "Game Capture 1")

if si ~= nil then
obs.obs_sceneitem_set_visible(si, true)
end
set_position(si, 5, 0)
end

Like for example i want to enable the LUT filter of the si2, but cant find any reference on how to manage filters
 

AaronD

Active Member
The Advanced Scene Switcher plugin can do this already:
If you only want that functionality, then you might just use that.

If you still want to make your own, then you might look through its source code and see how it does it.
 
Top