RGB+A "dual LPE" possible in Karma?

   324   2   0
User Avatar
Member
20 posts
Joined: 6月 2018
オフライン
Hello

I'm wondering if the "dual LPE" syntax described in the OSL docs is supported in Karma? (I wasn't able to get it to work)

OSL Light Path Expressions [github.com]
Good, you got your alpha channel as a separate AOV, but what if you want to put it in the actual alpha channel of an RGBA AOV? You can do that by appending your expression to the standard rgb expression for an AOV. Look at this example:

Output ("beauty.tif", "rgba", "C[SGs]*D*<Ts>*L !C<Ts>*B")
Edited by Dan_Andersen - 2025年9月9日 02:51:03
User Avatar
スタッフ
469 posts
Joined: 9月 2016
オフライン
No, it's not possible with karma (custom alpha has to be its own AOV)
User Avatar
Member
20 posts
Joined: 6月 2018
オフライン
Okay, that's what I suspected - thanks for confirming.
  • Quick Links