How can we do so using Karma ? (having 100 lights in the scene, would rather avoid setting each one of them manually)
AOV per each light
13294 14 6-
- tmdag
- Member
- 168 posts
- Joined:
- オフライン
-
- Mark Wallman
- Member
- 736 posts
- Joined: 8月 2013
- オフライン
Hi.
It is a bit manual right now.
You can add a light path expression in the Karma LOP node..
https://www.sidefx.com/docs/houdini/render/lpe.html [www.sidefx.com]
and in the light LOP under the Karma tab you can add the name of the light LPE if you change the tab to "set or create" (at the bottom).
Best
Mark
It is a bit manual right now.
You can add a light path expression in the Karma LOP node..
https://www.sidefx.com/docs/houdini/render/lpe.html [www.sidefx.com]
and in the light LOP under the Karma tab you can add the name of the light LPE if you change the tab to "set or create" (at the bottom).
Best
Mark
-
- tmdag
- Member
- 168 posts
- Joined:
- オフライン
-
- Mark Wallman
- Member
- 736 posts
- Joined: 8月 2013
- オフライン
Hi. 3Delight has the best setup for this out of all the render engines I have used. You just tick "multilight" and that is it (non-USD workflow).
As a side note, if you are trying this in Renderman USD side, Renderman's light tab light name does not work... but if you add a LPE light name on the Karma tab of a light. Renderman can then pick up AOV's per light as well. Renderman does not seem to support deep of cryptomatte right now. There are a lot of false starts still with USD right now.
There must be an easier way to do AOV's per light in USD somehow although I would prefer SideFX to prioritize Karma render speed.
Best
As a side note, if you are trying this in Renderman USD side, Renderman's light tab light name does not work... but if you add a LPE light name on the Karma tab of a light. Renderman can then pick up AOV's per light as well. Renderman does not seem to support deep of cryptomatte right now. There are a lot of false starts still with USD right now.
There must be an easier way to do AOV's per light in USD somehow although I would prefer SideFX to prioritize Karma render speed.
Best
-
- AlexCubor
- Member
- 14 posts
- Joined: 8月 2016
- オフライン
You can used for Each nodes. I think It's logical for USD philosophy.

For getting name light-group I was use python:

P.S I think It’s working similar for Karma too

For getting name light-group I was use python:
stage = hou.pwd().inputs()[0].stage() prim_path = hou.contextOption("ITERATIONVALUE") light_aov = stage.GetObjectAtPath(prim_path + '.primvars:arnold:aov') return 'diffuse_' + light_aov.Get()

P.S I think It’s working similar for Karma too
Edited by AlexCubor - 2021年5月17日 12:11:09
-
- Mark Wallman
- Member
- 736 posts
- Joined: 8月 2013
- オフライン
-
- AlexCubor
- Member
- 14 posts
- Joined: 8月 2016
- オフライン
-
- Mark Wallman
- Member
- 736 posts
- Joined: 8月 2013
- オフライン
-
- ProceduralFrankie
- Member
- 76 posts
- Joined: 2月 2017
- オフライン
-
- jsmack
- Member
- 8173 posts
- Joined: 9月 2011
- オフライン
-
- npetit
- スタッフ
- 443 posts
- Joined: 2月 2008
- オフライン
-
- j00ey
- Member
- 102 posts
- Joined: 5月 2013
- オフライン
-
- jsmack
- Member
- 8173 posts
- Joined: 9月 2011
- オフライン
-
- Zaur
- Member
- 1 posts
- Joined: 8月 2014
- オフライン
-
- Mark Wallman
- Member
- 736 posts
- Joined: 8月 2013
- オフライン
-
- Quick Links