Announcement

Collapse
No announcement yet.

Render mask by material

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Render mask by material

    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
    Last edited by Morne; 19-11-2015, 02:15 PM.
    Kind Regards,
    Morne

  • #2
    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.

    Comment


    • #3
      Simple version... won't work with multisubs etc... which is why Vlado probably hasn't implemented it himself....

      Code:
      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
      )
      Maxscript made easy....
      davewortley.wordpress.com
      Follow me here:
      facebook.com/MaxMadeEasy

      If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

      Comment

      Working...
      X