Maxscript and Vray

isProperty and hasProperty are quite slow to execute, I believe it’s faster in this case, as you know that property exists for VRayExtraTex to do…

if theelement.texmap != undefined and classof theelement.texmap == VRayDirt do…