Ok I think I got it, alpha make me scratch my head but this should work
.
Not sure about rendering time gain tho, you will tell lol.
1) First, select your figure on the scene pane, Select>Select Children. That way we sure we got all nodes from that figure (hair, cloth, eyebrows, genetal, earring and so on).
View attachment 1044652
2) Go to your Content Library pane, go to Script>Utilities>double click on "Create Advanced Iray Node Properties.dse"
View attachment 1044655
3) With still your figure/children selected, go on the Parameters pane, click "ALL", then search for "iray". In "Iray handle" put any name you want (I went for
111, so remplace 111 in my exemple with what you choose) and hit enter.
View attachment 1044657
4) Now on Render Settings pane / Advanced Tab : enable Canvases, click the "+" and choose "LPE" instead of "beauty".
Copy paste this in expr :
E '111' .* L
Which gonna isolate our "111" Iray handle from the rest but not from light(s).
View attachment 1044667
5) Last but no least, in Render Settings pane / Editor Tab, go to Alpha, set Default Alpha LPE to "custom".
Copy paste this in Custom Alpha LPE :
E ([^'111'] .*)? L?
Which mean somewhat everything that is not '111' Iray handle is now Alpha.
View attachment 1044676
This is the result of my exemple :
View attachment 1044760
View attachment 1044726