RocketSurgeon
New Member
I've a python script which is triggering on scene change, but it executes a web call only once the transition has completed in studio mode. Is there any way for a python script to get an event that aligns with the program scene changing and the transition starting?
The use case I have is that I'm using the Move transition plugin to move a 4K video feed to a different place on the screen, nice and slowly, and whilst it's moving I can make a call to the camera source to perform a zoom operation. Currently I've a 1000ms transition that is running to completion and THEN zooming, and I really need to let them happen at the time by firing off the HTTP call as soon as possible.
I see references to various internal signals that start transitions, and of course they are going to be required for the transition to happen, but those events don't appear to be available in the event enumeration headers.
From adding debug to my python script I only appear to be being sent:
OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED
and then only after the transition:
OBS_FRONTEND_EVENT_TRANSITION_STOPPED
OBS_FRONTEND_EVENT_SCENE_CHANGED
(I am a little confused as I'm trying to use studio mode but don't see a singular way to make the Program scene change. I've been using a stream deck controller which lets me change the Program scene directly, but with a regular keyboard I don't see a way to do this via a single hotkey, maybe I'm getting a bit muddled up with the Preview vs Program scenes?)
The use case I have is that I'm using the Move transition plugin to move a 4K video feed to a different place on the screen, nice and slowly, and whilst it's moving I can make a call to the camera source to perform a zoom operation. Currently I've a 1000ms transition that is running to completion and THEN zooming, and I really need to let them happen at the time by firing off the HTTP call as soon as possible.
I see references to various internal signals that start transitions, and of course they are going to be required for the transition to happen, but those events don't appear to be available in the event enumeration headers.
From adding debug to my python script I only appear to be being sent:
OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED
and then only after the transition:
OBS_FRONTEND_EVENT_TRANSITION_STOPPED
OBS_FRONTEND_EVENT_SCENE_CHANGED
(I am a little confused as I'm trying to use studio mode but don't see a singular way to make the Program scene change. I've been using a stream deck controller which lets me change the Program scene directly, but with a regular keyboard I don't see a way to do this via a single hotkey, maybe I'm getting a bit muddled up with the Preview vs Program scenes?)