Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
It will add an AOV in arnold, and you will get XYZ depth information in RGB with this pass.
1.Load arnold in render setting tab
2.Click on create button in the tool(it will create an AOV and a shader)
3.Click on adjust, here you will get a new window with to adjust xyz depth settings,
4. invert is just and option
if you click on invert it will invert the render info(eg if the camera far is dark and close range is white then it will invert that. but again you need to adjust the xyz values to get the desired result
5. If you click delete it will delete shader and AOV.
How it works When you run the script it will create a XYZ depth shader, which is created to produce X,Y and Z depth information in R,G,&B channels respectively it also programmed to create a custom XYZ AOV in arnold and the XYZ depth shader will connect to this AOV
Please Test this python script and let me know if any bugs
Note:- sometimes it shows Runtime error when you click on create button, but it will work fine,just ignore :)
Thanks,
Anshad
Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.