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

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.


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()

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.