default material only
select models → collect and collapse material → Parameter adjustment in bulk
Forum topic · General Scripting
By ttus · 2014-06-05
default material only
select models → collect and collapse material → Parameter adjustment in bulk
rep
ttus · 2014-06-16
wow fajar
No way, was build the script for me?
Thank you very much sir!
fn createVrayMat = (mymat
fajar · 2014-06-05
fn createVrayMat =
(
mymat =VrayMtl ()
mymat.name= uniquename "myMatVray_"
mymat.diffuse = color 91 91 91
mymat.reflection_fresnel = on
mymat.reflection_lockIOR = off
mymat.reflection_ior = 2
mymat.Reflection = color 124 124 124
mymat.reflection_glossiness = 0.78
mymat.reflection_subdivs = 16
meditMaterials[1] = mymat -- to ease edit my mat setting later
mymat
)
clearSelection()
themat= createVrayMat ()
for i in objects where (classof i.mat == standardMaterial) do i.mat = theMat
also you can bulk change the material in the mymat setting...see the material properties reference you want to change, in my case its vray material ...but you might want another.