How to get the CameraID

Prashant
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…

Comments

4 comments

  • Comment author
    Prashant

    as per the release notes of 28 Jan
    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.

    0
  • Comment author
    Matthew Seeger

    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"});
    
    0
  • Comment author
    Prashant

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

    0
  • Comment author
    William Thompson

    Did you get an error or nothing returned?

    0

Please sign in to leave a comment.