Changing filter opacity in LUA

mj2021

New Member
I have working scripts that get a source and change its color1/2 settings to allow me to pulse its opacity.

I now need to change the opacity of a bitmap, and the color correction filter appears to be a suitable mechanism, but I cannot work out how to read the current opacity and change it within a LUA script. I have the filter source object, but using obs.obs_source_get_settings doesn't return the settings of the filter. I've tried a fair few options after searching for the function to call, but one have worked for me - always passing the wrong type into the function.

I would much appreciate anyone who knows what sequence of functions I should call to achieve my simple aim. Once I know that, I'm sure I can work out the details.

Many thanks in advance, Matthew
 
Top