How to get the CameraID

as per the release notes of 28 Jan
:camera: Frame and create snapshots using any camera in a scene rather than just the default camera. The existing takeSnapshot player API now takes an optional cameraID parameter.

How to get the CameraID.

Hi Prashant,

If you are familiar with the front end API you can get your cameras like this

const iid = player.instanceId;
const cameras = player.scene.getAll({"from":iid,"type":"Camera"});

@seeger i tried the code, but it didn’t work.

Did you get an error or nothing returned?