Elektordi / obs-websocket-py

Python library to communicate with an obs-websocket server (for OBS Studio)
MIT License
223 stars 59 forks source link

How to add image source in scene? #78

Closed tororo1066 closed 11 months ago

tororo1066 commented 1 year ago

How do I get the image source to appear on the obs scene?

I'm trying this: requests.CreateSource("info_test", "image_source", "scene", "{'file': 'C:/Users/UserName/Pictures/screenshot.png'}", True) but it didn't specify the path to the image.

I use DeepL translation.

MewCrit commented 11 months ago

Hi I'm also looking for this any answer?

tororo1066 commented 11 months ago

It worked for me.

requests.CreateSource(img_info, "image_source", scene, {'file': os.path.abspath("image.png")}, False)