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:
-
Drag the GLB file into the interface to open it
-
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)
-
In the Inspector panel, select the 'Tools' tab (the wrench icon)
-
Scroll down to the GLB export section
-
You will be able to toggle on and off 'Export Cameras'. Be sure to toggle it off
-
Click 'Export to GLB'
-
Save the file