Hello everyone, since we get a lot of questions about LPE OSL syntax I thought I would start a little Tips and Tricks library post. I have attached a project, with some basic custom AOVs, driven by LPE with various OSL expressions for various channels. Next i will add a duplicate set for each Light ID (There is Fill and Key and that's what this project will keep).
OSL for this can be quite daunting, and there are multiple paths to the same result. No doubt I have made some mistakes here, for instance the SubSurface isn't working on my first build, I'll look into that.
If you have any LPEs you think would benefit the community, feel free to download the project, and add your own then re-share. I'll check them out and add them to the main library.
This LPE library should be referecend into all your projects, so that overtime it grows because if you work correctly in terms of Light Path Expression labels, there is never a need to change them once you've made them.
Documentation:
Isotropix LPE documentation examples
https://www.clarissewiki.com/3.6/useful ... ion_e.html
Autodesk OSL examples for Arnold.
https://docs.arnoldrenderer.com/display ... ssion+AOVs
The LPEs in the LPE_LIB.project, use a combination of both, and should be a great starting off point to cut and paste together some LPEs to get the output you want.