DaveWortley
12-21-2009, 01:23 PM
I've created collected an Array of a bunch of materials. I want to then change the material say from a VrayMtl to a StandardMaterial.
If you say $.material = StandardMaterial() then the material changes for all references to that material, but if you say have an array of
my_array = #(VrayMtl:Material1, StandardMaterial:Materrial2) for example...
If you try my_array[1] = StandardMaterial()
then as exepected your material in the array changes to....
my_array = #(StandardMaterial:Standard, StandardMaterial:Materrial2)
But this "standardmaterial:Standard" is no longer associated with the objects the VrayMtl was assigned to.
Is there a way to convert a material from one type to another whilst keeping all it's assignments?
If you say $.material = StandardMaterial() then the material changes for all references to that material, but if you say have an array of
my_array = #(VrayMtl:Material1, StandardMaterial:Materrial2) for example...
If you try my_array[1] = StandardMaterial()
then as exepected your material in the array changes to....
my_array = #(StandardMaterial:Standard, StandardMaterial:Materrial2)
But this "standardmaterial:Standard" is no longer associated with the objects the VrayMtl was assigned to.
Is there a way to convert a material from one type to another whilst keeping all it's assignments?
