Method GetSceneItemIndex
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
GetSceneItemIndex(SceneRef, int, Guid?, CancellationToken)
Gets the index position of a scene item in a scene.
public Task<int> GetSceneItemIndex(SceneRef scene, int sceneItemId, Guid? canvasUuid = null, CancellationToken cancellationToken = default)
Parameters
sceneSceneRefThe scene the item is in, by name or by UUID.
sceneItemIdintNumeric ID of the scene item. Restrictions: >= 0.
canvasUuidGuid?UUID of the canvas the scene is in, if the scene is given by name.
cancellationTokenCancellationTokenA token that ends the wait for the response, which makes the method throw an OperationCanceledException. A request that was already sent is not undone: OBS Studio may still carry it out.
Returns
Remarks
An index of 0 is at the bottom of the source list in the UI.
Scenes and Groups.