# Disable autofocus

**URL:** <https://forum.magicleap.cloud/t/disable-autofocus/1431>\
**Category:** Native Development\
**Created:** [January 27, 2023, 2:20pm UTC](https://forum.magicleap.cloud/t/disable-autofocus/1431 "2023-01-27T14:20:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSc](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@JSc](https://forum.magicleap.cloud/u/JSc)\
**Post date:** [January 27, 2023, 2:20pm UTC](https://forum.magicleap.cloud/t/disable-autofocus/1431/1 "2023-01-27T14:20:27Z")

</div>

Hi,  
I would like to know if it's possible to disable the autofocus on the camera or if there is a capture mode that disables it.  
Thanks.

Give us as much detail as possible regarding the issue you're experiencing.

**ML2 OS version** : 1.1.0  
**MLSDK version** : 1.1.0  
**Host OS** : Windows

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [January 27, 2023, 4:24pm UTC](https://forum.magicleap.cloud/t/disable-autofocus/1431/2 "2023-01-27T16:24:10Z")

</div>

Hi @JSc thanks for your post and welcome to the Magic Leap 2 Forum. Please see our developer documentation [here](https://developer-docs.magicleap.cloud/docs/api-ref/api/Modules/group___camera_metadata#enums-mlcamerametadatacontrolafmode) to disable the camera device's auto-focus routine.

`MLCameraMetadataControlAFMode_Off`
