Hello Guys !
I need a little help with a script which will assign the right Renderer according to the materials used in the scene.
Here’s what I have so far :
mats = for m in scenematerials collect m
for i= 1 to 24 do (
if mats[i] != undefined then meditMaterials[i] = mats[i]
)
for m in scenematerials do (
if ((matchPattern (isKindOf m as string) pattern:“VRay*”))== true then renderers.current = Vray()
if ((matchPattern (isKindOf m as string) pattern:“Corona*”))== true then renderers.current = CoronaRenderer()
)
Thank you for helping 



