# Changing Camera Focus Distance in Inspector

**URL:** <https://forum.babylonjs.com/t/changing-camera-focus-distance-in-inspector/19727>\
**Category:** Questions\
**Tags:** documentation, camera, inspector\
**Created:** [April 6, 2021, 8:45am UTC](https://forum.babylonjs.com/t/changing-camera-focus-distance-in-inspector/19727 "2021-04-06T08:45:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdp1g09](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jdp1g09/32/14864_2.png) [@jdp1g09](https://forum.babylonjs.com/u/jdp1g09)\
**Post date:** [April 6, 2021, 8:45am UTC](https://forum.babylonjs.com/t/changing-camera-focus-distance-in-inspector/19727/1 "2021-04-06T08:45:32Z")

</div>

I’m playing around with a camera depth of field effect, as per the documentation here: [Depth of Field and Other Lens Effects | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/postProcesses/dofLenseEffects)

I’m trying to play with the numbers in order to work out the effect values that I need in order to work in my scene, but it doesn’t seem as though the `dof_focus_distance` is a value that is editable from within the debug panels & inspector? Or am I missing something?

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 6, 2021, 5:49pm UTC](https://forum.babylonjs.com/t/changing-camera-focus-distance-in-inspector/19727/2 "2021-04-06T17:49:38Z")

</div>

~~Indeed, this property can’t be edited in the inspector.~~

~~You should create an issue in the repo so that we can keep track of it.~~

[…] My mistake, for some reason it is named `Distortion` in the inspector, but it is really the dof distance focus!

---

<div class="post-metadata">

**Author:** ![jdp1g09](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jdp1g09/32/14864_2.png) [@jdp1g09](https://forum.babylonjs.com/u/jdp1g09)\
**Post date:** [April 6, 2021, 6:06pm UTC](https://forum.babylonjs.com/t/changing-camera-focus-distance-in-inspector/19727/3 "2021-04-06T18:06:34Z")

</div>

Thank you - does that then mean that the “distortion” value is not editable in the inspector? Is it worth me creating an issue to correct the label?

The value is also capped to a value of 10 in the inspector, which makes testing in the inspector very difficult for reasonably sized scenes. Having to keep editing my code, and refreshing the view, which is a bit of a pain.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 6, 2021, 6:28pm UTC](https://forum.babylonjs.com/t/changing-camera-focus-distance-in-inspector/19727/4 "2021-04-06T18:28:03Z")

</div>

> [@jdp1g09](#):
>
> Thank you - does that then mean that the “distortion” value is not editable in the inspector? Is it worth me creating an issue to correct the label?

The property is also called `dofDistortion` in the class, so I don’t know regarding changing the label… I’m not sure this property is a true dof focus distance… There’s a true DoF effect in the `DefaultRenderPipeline` and that one does contain a `focalLength` property.

> [@jdp1g09](#):
>
> The value is also capped to a value of 10 in the inspector, which makes testing in the inspector very difficult for reasonably sized scenes. Having to keep editing my code, and refreshing the view, which is a bit of a pain.

You’re right, I made a PR for that:

> <https://github.com/BabylonJS/Babylon.js/pull/10145>
>
> See https://forum.babylonjs.com/t/changing-camera-focus-distance-in-inspector/19…727/3
