Image Source - Changing the file path in Lua


New Member
I'm sure one of you cleaver people will know the answer, my problem is that I want to change in script (Lua) the file and location for an Image Source. Basically to change the source from displaying one countrys flag to another. The flags are .png files stored on the local machine. I have the Image Source set-up in the Scene using a default image file to display. Been looking through all the forums and help files but so far not found any scripts or information as to how change a file location for a Image Source using a Lua script. Seems easy for a Text Source and other sources as there are lots of examples on the web but I've not found anything that will work for an Image Source.

Only been using OBS for a few months so still learning it so any help or pointers greatly accepted.

For the full application of this please see