A render mask by material would really be awesome please
(not texture, but whole material)
For example when something changes in the scene that has a specific material (and that material is instanced into multisubobject etc and some is in proxies and some not)
Also, for the include exclude list, to have an option per material
In the options rollout of a material, check on ‘Override Material Effect’ then set the effect ID to a number of choice.
then add a VrayObjectSelect renderelement, set the GBuf ID to the same number as the materials and turn on ‘isMatID’
and set the mode to Raw (this will split the element in the default, the filtering and the alpha.
Simple version… won’t work with multisubs etc… which is why Vlado probably hasn’t implemented it himself…
if selection.count != 0 and selection[1].material != undefined do
(
renderers.current.includeListRenderSubset = (for o in objects where o.material != undefined and o.material == selection[1].material collect o)
renderers.current.imageSampler_renderMask_type = 3
)