Page 1 of 1

MEL scipt: UV randomizing

Posted: Wed Dec 06, 2006 2:53 pm
by deadalvs
as SunlightRocker wished, i post my small script for maya that randomizes uvs.

it's all described in the script's info tab. but for a short description:

Image

upper row of cubes: simple uvs
lower row. randomized uvs.

this small script is cool. it lets one select multiple objects, scale the uvs to a reasonable size and then it scatters all the uvs by a randomized factor.

repetitive patterns because of multiple duplicated geometry is history now. (of course, the used bitmaps have to be nicely tileable !)

* * *

link to the file:
http://www.jumpgates.com/matthias/MEL/UV_RAND_v2.mel

* * *

deadalvs

Posted: Wed Dec 06, 2006 7:55 pm
by SunlightRocker
Thanks alot my friend. :)

Posted: Wed Dec 06, 2006 8:01 pm
by DrMerman
Looking good mate :)

Posted: Wed Dec 06, 2006 8:36 pm
by deadalvs
thanks to YOU guys...

*kiss* *kiss* :)

i wanna luuuuuv You all on the forum...

* * *

of course, this script works only well with textures that repeat up to about four times. if You use a large plane with 50 by 50 tiles it won't mind moving these tiles around by 20 units.

but it's cool. there's no way to see that it's only one texture when for example building wooden planks or stuff like that.

* * *

enjoy.
ps. of course i could even make an other button that moves each uv-point individually, but with quads, this might produce strange texture streching over the diagonal.


* * *

deadalvs

Posted: Thu Dec 07, 2006 3:07 am
by samsam
many thanks for this

:P

Posted: Thu Dec 07, 2006 2:50 pm
by deadalvs
is it usable ?

what could be implemented... ?

i want to get it to an other level...

* * *

deadalvs

Posted: Fri Dec 08, 2006 1:29 am
by 3dtrialpractice
thanks forposting this.. looks like I coulduse it. .I will check it out and let ya know. .but its very nice of you to share your creations .. (Dr Meramn as well..) thanks to all you mel scripters out there!

Posted: Fri Dec 08, 2006 4:54 am
by mverta
Is there a way to have it so it doesn't break the normalization? I notice a lot of partial-grid sections in the image.

_Mike

Posted: Fri Dec 08, 2006 12:10 pm
by deadalvs
mverta wrote:Is there a way to have it so it doesn't break the normalization? I notice a lot of partial-grid sections in the image.

_Mike
i can not follow You... what do You mean by normalization ?

of course You can use the scatter option without the projection, just by using the scale factor of 1.

i tried this again on a cube without changing it's uvs, but of course, the all uvs are just moved across the space resulting in breaks on the edges...

or?

* * *

deadalvs