Error: "The glTF file contains cameras attribute. Please do not contain cameras attribute."

When trying to upload a glb/gltf file to a third-party site you may receive the above error.

We are aware of the error that occurs when trying to export .glb files specifically for Amazon. There is currently not a way to export the .glb/gltf files from KeyShot without the camera attributes. However, this has been submitted as a feature request to our developers and they are aware of it.  It is currently not resolved but they are looking into providing an option to not include cameras in future releases. I cannot provide an exact timeline of when this will be completed unfortunately.

In the meantime, we have found a workaround which should work while we wait for the feature to be added in KeyShot.

You can open the KeyShot GLB file with https://sandbox.babylonjs.com/ and export it without the camera asset.

To do this, follow the instructions below:

  1. Go to https://sandbox.babylonjs.com/

  2. Drag the GLB file into the interface to open it

  3. Go to the bottom right of the page and select the 'Inspector" icon 

  4. In the Inspector panel, select the 'Tools' tab (the wrench icon)

  5. Scroll down to the GLB export section

  6. You will be able to toggle on and off 'Export Cameras'. Be sure to toggle it off

  7. Click 'Export to GLB'

  8. Save the file

This file should work for uploading to Amazon.

 

If you still have issues, please contact support by creating a ticket in our support portal here