-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simpleobsws to perform the scene change #17
Comments
Hi, I second that. I have built a control hardware using a raspi, and want to change the scene on the touch of a button. For that I also need a hint in the right direction. The request eample does not show how to pass parameters. I want to know how I can set the reuqest parameter for 'SetCurrentProgramScene' request. Thanks |
Hi, I found it. Here is a python example code: `import logging parameters = simpleobsws.IdentificationParameters(ignoreNonFatalRequestChecks = False) # Create an IdentificationParameters object (optional for connecting) ws = simpleobsws.WebSocketClient(url = 'ws://192.168.2.130:4455', password = 'test123', identification_parameters = parameters) # Every possible argument has been passed, but none are required> async def make_request():
loop = asyncio.get_event_loop() |
@McMornan thanks for the code. Really really helpful !! |
Hi !,
i would like to use your software to run a certain scene in obs;
these are the scenes currently loaded in my obs:
request = simpleobsws.Request( "GetSceneList" )
"scenes": [
{
"sceneIndex": 0,
"sceneName": "Scene 5"
},
{
"sceneIndex": 1,
"sceneName": "Scene 4"
},
{
"sceneIndex": 2,
"sceneName": "Scene 3"
},
{
"sceneIndex": 3,
"sceneName": "Scene 2"
},
{
"sceneIndex": 4,
"sceneName": "Scene"
}
]
I would like to use the "set Scene Name" (or another) function to execute, for example, "Scene 5", but I don't understand the syntax of the command itself.
Can you please give me a correct example to run, through your script "sample_request.py", the execution of a certain scene, among those present in obs studio
Many thanks !
The text was updated successfully, but these errors were encountered: