I am using the GLTF exporter to use the result with Three.js. Within the Scene I have defined two cameras and set one as the »scenes' camera« within the Scene Properties panel (see image below):


The result of the export contains a list of all cameras, but how can I figure out which one is the one attached to the scene?


1 Answer 1


glTF and three.js do not have Blender's concept of a Scene Camera, so you'll need to use another way to identify which camera you want. Object names are exported with cameras, and Custom Properties are exported as well (if you enable this in the export options). Those would both be available in three.js as camera.name and camera.userData.

Note that the camera may be parented to an empty for export, so you may need to check both camera.name and camera.parent.name for the original name.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.