Announcement

Collapse
No announcement yet.

material selection by the glossiness range

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

  • material selection by the glossiness range

    Hi,

    I need for a movie to change the glossiness values of many materials in the scene, is there a way to select such materials with respect to their glossiness, for example I need to select all materials that have a value of glossiness lower than 0.8. is there any script to make it (FYI, there are many,many materials, it is impossible to solve this problem case by case ... it's a scene that I got that I have to optimize)

    thank you in advance

    mienda

  • #2
    As long as there are no maps driving the glossiness it's very simple. For VRayMtls for example:
    Code:
    a_mats = getclassinstances vraymtl
    a_lowGloss = #()
    for o_mat in a_mats where o_mat.reflection_glossiness < 0.8 do append a_lowGloss o_mat
    print a_lowGloss
    If there are maps driving it it gets very difficult as you would need to sample (render) the maps.
    Rens Heeren
    Generalist
    WEBSITE - IMDB - LINKEDIN - OSL SHADERS

    Comment


    • #3
      Thank you very much Rens,
      i'll try it...

      I was sure that it was simple but i don't know how to script !

      Best

      Mienda

      Comment

      Working...
      X