# Where is the "Near Distance" Parameter for ZDepth

**URL:** <https://forums.chaos.com/t/where-is-the-near-distance-parameter-for-zdepth/100121>\
**Category:** Issues\
**Created:** [August 24, 2020, 8:09pm UTC](https://forums.chaos.com/t/where-is-the-near-distance-parameter-for-zdepth/100121 "2020-08-24T20:09:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsaldoff](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dsaldoff](https://forums.chaos.com/u/dsaldoff)\
**Post date:** [August 24, 2020, 8:09pm UTC](https://forums.chaos.com/t/where-is-the-near-distance-parameter-for-zdepth/100121/1 "2020-08-24T20:09:08Z")

</div>

Hi Everyone. I’m having trouble finding the “Near Distance” Parameter for the ZDepth Render Element. Does anyone know how to get it back? I read that the option is only available when Z-Depth use camera clip boundaries is disabled but I think that only applies to V-Ray for 3ds Max. Is that an option V-ray for Rhino?  
Any help would be greatly appreciated. I like a lot of contrast in my near and far objects when doing a Z-Depth pass.

---

<div class="post-metadata">

**Author:** ![Micha](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/micha/32/59168_2.png) [@Micha](https://forums.chaos.com/u/Micha)\
**Post date:** [August 31, 2020, 5:58am UTC](https://forums.chaos.com/t/where-is-the-near-distance-parameter-for-zdepth/100121/2 "2020-08-31T05:58:32Z")

</div>

Checked here too and the option is missing. I would like to get it back too and hope it will come back soon. Additional if the option “distance from camera” is enabled, the sliders should be greyed out.

---

<div class="post-metadata">

**Author:** ![tsvetomira.girginova](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tsvetomira.girginova/32/271331_2.png) [@tsvetomira.girginova](https://forums.chaos.com/u/tsvetomira.girginova)\
**Post date:** [September 16, 2020, 7:10am UTC](https://forums.chaos.com/t/where-is-the-near-distance-parameter-for-zdepth/100121/3 "2020-09-16T07:10:12Z")

</div>

Hello everyone,

thank you for your feedback.

We will bring this parameter back.

Until then, you could use this script to control the result:

> import rhinoscriptsyntax as rs
> 
> vray = rs.GetPlugInObject(“V-Ray for Rhino”)  
> vray.SetSceneValue(“/Z Depth”, “depth\_white”, 0)  
> vray.SetSceneValue(“/Z Depth”, “depth\_black”, 500)  
> vray.RefreshUI()

Just in case, if you haven’t used scripts in Rhino before, [here](http://ftp.chaosgroup.com/support/screenshots/2020-09-16_09-56-23.gif) it’s virtually shown how to do it.

Keep in mind that:

- depth values are calculated in scene units
- depth\_white refers to near distance
- depth\_black refers to far distance

Best regards,  
Tsvetomira

---

<div class="post-metadata">

**Author:** ![dsaldoff](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dsaldoff](https://forums.chaos.com/u/dsaldoff)\
**Post date:** [September 16, 2020, 3:52pm UTC](https://forums.chaos.com/t/where-is-the-near-distance-parameter-for-zdepth/100121/4 "2020-09-16T15:52:44Z")

</div>

That’s awesome! You just made me a customer for LIFE!!! I’ve never received such a detailed response from a forum before. Thank you Tsvetomira!!

---

<div class="post-metadata">

**Author:** ![tsvetomira.girginova](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tsvetomira.girginova/32/271331_2.png) [@tsvetomira.girginova](https://forums.chaos.com/u/tsvetomira.girginova)\
**Post date:** [September 17, 2020, 11:39am UTC](https://forums.chaos.com/t/where-is-the-near-distance-parameter-for-zdepth/100121/5 "2020-09-17T11:39:35Z")

</div>

Thank you, **[dsaldoff](https://forums.chaosgroup.com/member/271772-dsaldoff)!**

Great to know.  
Made my day.

Enjoy V-Ray!
