You mean like this? myArray = #() append myArray (copy meditMaterials[1].diffusemap)meditMaterials[1].specularmap = myArray[1] Or are you specifically asking about texture paths? myArray = #() append myArray (meditMaterials[1].diffusemap.filename) meditMaterials[1].specularmap.filename = myArray[1] Both of those assume…
think you are looking for execute since maxscript will probably try to read d_standard[1] as a property but its really a string. Think there was a getproperty and setproperty functions for maxscript. Been a while. Edit: Heres the documentation for getproperty and setproperty (just search for…
The array has already defined with material properties texture slot, example with standard material: d_standard = #(""diffuseMap", "ambientMap", "displacementMap", "bumpMap") -- and so on or with corona: d_corona = #("texmapDiffuse", <diffusewithcoronaAO>, "texmapDisplacement") -- and so on and I want to call that array…
Hi, basically what I want to do is to assign material property to an array like d_standard =#("diffuseMap") and later call it as property like defmat = standardMaterial() texPath = Bitmaptexture fileName:tmp defmat.d_standard[1] = texPath << This is where I get lost Is there any way I can achieve that with maxscript? For…
Execute always operates in global scope, even if you are in some local scope. So you wouldn't convert to the Bitmaptexture to a string. You would set it as a global variable, and then just use the variable as the string. ( ( --set global variable in my local scope global bm = Bitmaptexture() ) ( --run in global scope even…