setSceneItemIndex method

Future<void> setSceneItemIndex({
  1. required String sceneName,
  2. required int sceneItemId,
  3. required int sceneItemIndex,
})

Sets the index position of a scene item in a scene.

Scenes and Groups

  • Complexity Rating: 3/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<void> setSceneItemIndex({
  required String sceneName,
  required int sceneItemId,
  required int sceneItemIndex,
}) async =>
    await obsWebSocket.sendRequest(Request(
      'SetSceneItemIndex',
      requestData: {
        'sceneName': sceneName,
        'sceneItemId': sceneItemId,
        'sceneItemIndex': sceneItemIndex,
      },
    ));