obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.84k stars 704 forks source link

Feature Request: trigger CurrentSceneCollectionChanged before CurrentProgramSceneChanged #1113

Open marjune163 opened 1 year ago

marjune163 commented 1 year ago

Feature Request Type

Other

Feature Request Type (Other)

No response

Requested Feature

I want to track the scene collection and program scene change. When program scene changed, I will print a log, with the context of current scene collection. When switched a scene collection, currently CurrentProgramSceneChanged triggered first, and then CurrentSceneCollectionChanged. So the logger logs the new scene name with old scene collection name. So it will be good to make sure trigger CurrentSceneCollectionChanged before CurrentProgramSceneChanged.

Requested Feature Usage Scenario

trigger CurrentSceneCollectionChanged before CurrentProgramSceneChanged

tt2468 commented 1 year ago

The order in which these events are fired are controlled entirely by OBS itself and how it operates internally. If you're trying to track scene collection changes, it sounds like the CurrentSceneCollectionChanging event is what you want.