Table of Contents

Method DuplicateSceneItem

Namespace
OBSStudioClient
Assembly
OBSClient.dll

DuplicateSceneItem(SceneRef, int, SceneRef?, Guid?, CancellationToken)

Duplicates a scene item, copying all transform and crop info.

public Task<int> DuplicateSceneItem(SceneRef scene, int sceneItemId, SceneRef? destinationScene = null, Guid? canvasUuid = null, CancellationToken cancellationToken = default)

Parameters

scene SceneRef

The scene the item is in, by name or by UUID.

sceneItemId int

Numeric ID of the scene item. Restrictions: >= 0.

destinationScene SceneRef?

The scene to create the duplicated item in, by name or by UUID. If omitted: From scene is assumed.

canvasUuid Guid?

UUID of the canvas the scene is in, if the scene is given by name.

cancellationToken CancellationToken

A 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

Task<int>

Numeric ID of the duplicated scene item.

Remarks

Scenes only.