Announcement

Collapse
No announcement yet.

vray matte alpha

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

  • vray matte alpha

    Hello
    I did a line of script to see which object as no alpha
    -----------
    $*.wirecolor = black
    for bbb in objects where getUserProp bbb "VRay_Matte_Alpha" == 0.0 do bbb.wireColor = red
    ------------
    but I can't manage to compare "VRay_Matte_Alpha" != 1.0 or with "<="
    can anybody help ?
    Thanks

  • #2
    although the user property you are getting ("Vray_Matte_Alpha") is representing a float value, it is actually a string... if you want to compare the value to an actual float value, you need to convert it first:

    for bbb in objects where (getUserProp bbb "Vray_Matte_Alpha") as float == 0.0 do bbb.wireColor = red

    Comment

    Working...
    X