Hi All
I have an export from Synchro which has animated Standard materials which I need to convert to Vray materials and retain the animation keys in the diffuse color slot (see attached).
I can do this manually by picking the material, create new Vray material, and wiring in the bezier controller to the new vray material but i have thousands so looking for an automated way.
I've tried a couple of material converters but they don't bring across the animation.
if doing in maxscript, i think i need to.....
Get current object material
Create new vray material
Wire in old diffuse bezier node to new vray material
apply new material to object
repeat
thanks in advance!
Neil
Solved! Go to Solution.
i don't have VRay in my system but the solution can be as:
mapped fn convertStandardToVRayWithDiffuse mat = if iskindof mat Standard do
(
vmat = VRayMtl name:mat.name showInViewport:mat.showInViewport
if (c = getpropertycontroller mat #diffuseColor) != undefined do
(
setpropertycontroller vmat #diffuse c
)
replaceinstances mat vmat
vmat
)
fn changeStandardMaterialsToVRay =
(
mats = getclassinstances Standard
convertStandardToVRayWithDiffuse mats
)
/*
changeStandardMaterialsToVRay()
*/
let me know if you meet any problems (errors, etc.)
I am doing exactly same thing. trying to change materials which came from Synchro to V-rayMat, but still cant transfer keys:(((
Can't find what you're looking for? Ask the community or share your knowledge.