Well I already explained basically how you'd go about writing such a script. 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.
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…
Would it be possible to do it with the Parameter-Editor and UVW-Xform too ? Because i dont know OSL or how to access it.I can connect the UV value to a custom parameter but how can I make it (the custom value) random ? And how to do it with only on material for all meshes, so that each mesh get different random UV…
Yes, each floor tile should look different with only one material if possible, by setting the UV value different with the script for each mesh with the material applied to.
thanks :)but this script creates 5 Xform modifier to each of my 5 boxes, though and the values of the Xform UVs are random how it should be, but I have to delete 4 modifiers from each box
That's because your objects are instances. It's indeed as if you run the script 5 times on the same object. You might want to make copies instead because instances can't have different settings.
That's not maxscript syntax. You should check some samples scripts . Should be : for i=1 to 6 do ( ) But instead of a fixed iterations number, you could parse your selected objects like so : --array of selected objects<br>sel = selection as array<br><br>--for each object in sel, with a check that the object is a…