Question / Help How to retrieve list of filters for a source in python/LUA?

hedgehog90

New Member
I want to retrieve a list of filters for a source, and if possible change the values through a Python script.

There is a function by the name of 'obs_source_enum_filters', but unlike other enum functions it doesn't return an array, and it requires obscure parameters that are only stated in the c code:

Code:
void obs_source_enum_filters(obs_source_t *source, obs_source_enum_proc_t callback, void *param)

I've tried giving it a callback function but I get the error:

Code:
in method 'obs_source_enum_filters', argument 2 of type 'obs_source_enum_proc_t'

I don't know what a 'obs_source_enum_proc_t' is or how to create one.

Please help!
 

hedgehog90

New Member
*MASSIVE BUMP*

I still haven't been able to work this one out. It appears impossible to retrieve a list of filters from a source through the lua/python API.
 

ayawnimouse

New Member
I want the same thing... There is a custom filter pack that uses lua, maybe its got some code you can use as an example? I haven't looked at the code yet but was hoping to do the same thing as OP, but as a worst case scenario, if this filter pack works and you can change parameters with it (lua scripting) then I'd be willing to switch from current supported filters to custom ones that do the same thing but are scriptable. Here is a link to the filter pack on github: https://github.com/WiiPlayer2/obs-scripts/releases/tag/v0.4.6657.3109
 
Top