Announcement

Collapse
No announcement yet.

Render Mask in Blender

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

  • Render Mask in Blender

    In Max/vray exist cool feature Render Mask. Is it possible to use it in Blender vray?

  • #2
    > Is it possible to use it in Blender vray?

    Now yes: https://github.com/bdancer/vb30/comm...c171965e49b4ff

    "Update exporter" will help.
    V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
    andrei.izrantcev@chaos.com
    Support Request

    Comment


    • #3
      This is nice feature indeed, I tested it supports many object ID's at the same time like "1,5,10". Good thing is that you can mix masked/normal images inside Blender because VFB does not support that yet
      Thank you and remember 3dmax system also (selected objects)
      Win11 Pro 64bit, GTX 970, Standalone version: V-Ray Next 4.30.03,

      Comment


      • #4
        Thanks a lot bdancer! Working as a charm! Max's "selected object" option would be also cool, but with object ID available it is not problem.

        Comment


        • #5
          Little script to render mask only selected objects. Just set render mask type to Object ID, select objects and run the script.

          import bpy
          index = []
          ID = 32767
          for o in bpy.context.selected_objects:
          index.append(o.pass_index)
          o.pass_index = ID

          bpy.context.scene.vray.SettingsImageSampler.render _mask_object_ids = str(ID)
          bpy.ops.render.render()

          c = 0
          for o in bpy.context.selected_objects:
          o.pass_index = index[c]
          c += 1
          Win11 Pro 64bit, GTX 970, Standalone version: V-Ray Next 4.30.03,

          Comment


          • #6
            Render mask script for selected objects: http://www.pasteall.org/60832
            Win11 Pro 64bit, GTX 970, Standalone version: V-Ray Next 4.30.03,

            Comment

            Working...
            X