This might help with the hunt for materials that aren’t compatible with V-Ray…
(
local allSceneMats
fn matSortFN mat1 mat2 =
(
case of
(
(mat1.name < mat2.name):-1
(mat1.name > mat2.name):1
default:0
)
)
fn getSceneMats =
(
local sceneMats = #()
for c in material.classes where c.creatable == true do
(
mats = getClassInstances c
join sceneMats mats
)
qsort sceneMats matSortFN
sceneMats
)
fn analyseScene =
(
clearListener()
allSceneMats = getSceneMats()
for om in allSceneMats where (not (areMtlAndRendererCompatible om renderer:(vray())) or (isKindOf om architectural)) do format "% - % %\n" (classOf om) om.name (refs.dependentNodes om)
)
analyseScene()
)
It will list all non-V-Ray materials in the listener and tell you which objects they are on.