Can I export to GLTF without including camera attributes?

Online retailers have specific requirements for GLB/glTF files and some will only accept GLB/glTF files with no camera attributes. When uploading a glTF file that was created from KeyShot, you may see the following error:

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

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.

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 (it is the one that looks like a cube with a gear)

  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