Material editor VrayMtl defaults,

Hi there people,

i was trying to get somewthing to work. for example if i load max all materials would be default to VrayMtl. i got that working by replacing the medit.mat file.

Second i want to have the default type material set to a vrayMtl. if you check the currentdefault.ini file of 3dsmax you’ll see the section :

; Material Editor
; materialType
; Standard Material = 2 0
; Architectural Material = 0x13d11bbe 0x691e3037
; Raytrace Material = 0x27190ff4 0x329b106e
[100 C80 0]
; Standard Material
materialType= 2 0

So i thought, i’ll get the classid of a vrayMtl and set this to the default…
VrayMtl.Classid
#(935280431, 1882483036)

That is not working. so i checked the classid of a standard material #(2,0) wich is the same as the ini file. but when i check class id of a architecturalmtl it different.
Architectural.classid
#(332471230, 1763586103)

So perhaps any1 has an idea what that values should be ?

those numbers are in hex, try : 0x37BF3F2F 0x7034695C

hmm yeah i think you are right about that, should have thought of that myself :slight_smile:
but well it’s not seem to work, or al least does not what i want :slight_smile:

I changed the number, save ini, started max
Now i get my defaul material loaded from my medit.mat file (all vray)
But if i for example create a multi-mat material it gets filled with standard materials.
if i condense materials i also get standard materials.

now i’m not sure changing this should affect things states above but well.

The Multi/Sub material explicitly creates only Standard materials (this is hard-coded into it).

Best regards,
Vlado