Announcement

Collapse
No announcement yet.

How to find displacent in scene?

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

  • How to find displacent in scene?

    I have a scene that crashes unless I turn off displacement in the V-ray globals.
    Presumably there is either a material with displacement, or a Vray displacement modifier somewhere in the scene, but is there an easy way to find all materials/objects with displacement?

    Cheers

  • #2
    Hi, you can try this script. It will print a list with objects which have a VRayDisplacmentMod and a list with VRayMtls, which have a displacement map plugged-in.
    Code:
    fn PrintObjectsWithDisplacement =
    (
       local objWithVRayDisplacementMod = #()
       local matWithDisplacement = #()
       for eachObj in objects do
       (
          for eachMod in eachObj.modifiers do
          (
             if classof eachmod == VRayDisplacementMod then
                appendIfUnique objWithVRayDisplacementMod eachObj.name
          )
       )
       for eachMat in (getClassInstances VRayMtl) do
       (
          if eachMat.texmap_displacement != undefined then
             appendIfUnique matWithDisplacement eachMat.name
       )
       print "### Objects with VRayDisplacementMod ###"
       print objWithVRayDisplacementMod
       print "### Materials with displacement ###"
       print matWithDisplacement
    )
    PrintObjectsWithDisplacement()
    Miroslav Ivanov
    Chaos Cosmos

    Comment


    • #3
      Zorb's Modifier Modifier is also a *very* cool tool for this kind of issues.
      Granted, it won't know of materials, but the modifier will show if the displacement for the node is taken from the shader, or not.
      Lele
      Trouble Stirrer in RnD @ Chaos
      ----------------------
      emanuele.lecchi@chaos.com

      Disclaimer:
      The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

      Comment

      Working...
      X