Hi,
I am new to Maxscript and dont know much about it, but to start, I would like to make a script that positions a texture randomly on a mesh.For example, I have 10 floor tiles and have one material. Every floor tile should have the same material but the UV position of the texture from the material should always be set random by the script with code like meditMaterials[1][#Maps][#color__Map__1____chesspattern].coords.U_distance = random <1> <10>
Is this possible ?
Replies
If you're hoping someone else will write the script though you'll need to post an example mesh and material you'd like said script to work on.
for(i=1; i<6; i++)
{
select $Quader(i+1)
modPanel.setCurrentObject $.modifiers[#UVW_Xform]
$.modifiers[#UVW_Xform].V_Offset = random 1.0 100
}
(
)
But instead of a fixed iterations number, you could parse your selected objects like so :