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: get an array of scenes from a given collection #1092

Closed fedeocire closed 1 year ago

fedeocire commented 1 year ago

Feature Request Type

RPC Request

Feature Request Type (Other)

No response

Requested Feature

get an array of scenes from a given collection

Requested Feature Usage Scenario

obtain an array of scenes of a given collection as is done through the get_scene_item_list(SceneName) function to retrieve the sources of a scene. This is to allow an external application to preload all collections with their respective scenes and sources

cezarsmpio commented 1 year ago

This would be a very helpful feature since "GetSceneList" only returns scenes from the current collection on OBS. Is there any workaround for this case?

👍

tt2468 commented 1 year ago

This feature cannot be implemented, due to limitations of how OBS works. In order to get a list of scenes from a collection that is not the current one, you must switch to that collection first.

cezarsmpio commented 1 year ago

@tt2468 any idea how Elgato Stream Deck does that? When you select the switch obs scene button, it shows collections and scenes for the selected collection on the input. I'm wondering if they use this lib tho.

thanks @tt2468 for letting us know!

tt2468 commented 1 year ago

It's probably relying on manually reading and parsing the scene collection .json files within the OBS config directory, something that I would consider out of scope of the objectives of obs-websocket.

cezarsmpio commented 1 year ago

I see, I will look into that. Thanks!