Announcement

Collapse
No announcement yet.

MaterialID not being passed from proxy

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

  • MaterialID not being passed from proxy

    Hi,

    Using maya 2014x64 but an older build from December 17th 2013.

    MaterialID doesn't get passed through a V-Ray Proxy.
    Maya 2020/2022
    Win 10x64
    Vray 5

  • #2
    It is a material property; not sure what it has to do with the proxy itself?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Hi Vlado - certainly, but I'm not sure if it should be passed to the channel or not?

      If you have a scene with normal objects and shaders and a few proxies, you can run this:

      $shadings = `ls -type shadingEngine`;

      for ($each in $shadings)
      {
      vray addAttributesFromGroup $each vray_material_id 1;
      vrayAddAttr $each vrayColorId;
      vrayAddAttr $each vrayMaterialId;
      setAttr ($each+".vrayColorId") -type double3 (rand (.001,1.000)) (rand (.001,1.000)) (rand (.001,1.000));
      }
      On this particular scene, every material has been assigned a unique colour but the trees (which are proxies and turn out black). The vraymeshmtlSG and subsequent child SG's for these trees all have unique vrayMaterialId colours on them but it just renders black. materialID using the material mode doesn't work either?

      Click image for larger version

Name:	Untitled-2.jpg
Views:	1
Size:	519.9 KB
ID:	852025
      Maya 2020/2022
      Win 10x64
      Vray 5

      Comment


      • #4
        Yep, it seems the extra attributes of the shading group that the mesh material is connected to, are ignroed. Will check this. It works if you assing them directly to the mesh material itself.
        V-Ray/PhoenixFD for Maya developer

        Comment

        Working...
        X