Skip to content
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

Bug: order of instructions in requestBatch #1253

Open
martinsglucas opened this issue Sep 8, 2024 · 0 comments
Open

Bug: order of instructions in requestBatch #1253

martinsglucas opened this issue Sep 8, 2024 · 0 comments

Comments

@martinsglucas
Copy link

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

Other

OBS Studio Version (Other)

30.2.3

obs-websocket Version

5.1.0

OBS Studio Log URL

https://obsproject.com/logs/WzOOUIoqdjGNA1rx

OBS Studio Crash Log URL

No response

Expected Behavior

I created an automation so that when a video finished playing, OBS would change the scene and then change the transition.

Current Behavior

When executed in this respective order (first scene and then transition), the transition and the Program Scene get stuck.

var requests = [
    {"requestType": "SetCurrentProgramScene",
    "requestData": { "sceneName": jumpToScene }
        
    },{"requestType": "SetCurrentSceneTransition",
    "requestData": { "transitionName": current_transition }}
    ];
jsc.obs_v5.requestBatch(p1, requests);

image

If you do it in reverse order, it works

var requests = [
    {"requestType": "SetCurrentSceneTransition",
    "requestData": { "transitionName": current_transition }
        
    },
    {"requestType": "SetCurrentProgramScene",
    "requestData": { "sceneName": jumpToScene }}
    ];
jsc.obs_v5.requestBatch(p1, requests);

Steps to Reproduce

  1. Make a requestBatch with the instructions to change the scene and then change the transition

Anything else we should know?

I also tried with two separate requests (the request method) and it didn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant