getIndex method

Future<int> getIndex({
  1. String? sceneName,
  2. String? sceneUuid,
  3. String? canvasUuid,
  4. required int sceneItemId,
})

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

An index of 0 is at the bottom of the source list in the UI.

Scenes and Groups

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

Implementation

Future<int> getIndex({
  String? sceneName,
  String? sceneUuid,
  String? canvasUuid,
  required int sceneItemId,
}) async => getSceneItemIndex(
  sceneName: sceneName,
  sceneUuid: sceneUuid,
  canvasUuid: canvasUuid,
  sceneItemId: sceneItemId,
);