cameraType dont work

Hi,

Im using the functon for change camera type, but seems no response is provided.
The function is:

api.updateSettingAsync(‘scene.camera.cameraTypes.active’, camType);

where camType is the value from 0-6

Any advice?

I just tested the function and it seems to work as expected in the latest viewer version (2.19.0). Do you mean that the camera doesn’t get updated or just that you don’t get an API response? What happens if you try to log the response?

api.updateSettingAsync("scene.camera.cameraTypes.active", camType).then(
    function(response){
        console.log(response);
    }
);

Thanks for response. I was using ver 2.8. With the latest version works fine.