Notifications
Clear all

[Closed] Move and scale UV maps?

 Goc

Hi all

I have a question for you MAXScript specialists… I’m trying to make a script which will be able to move or scale a UV map. Just that…move it and scale it. Is there any quick ‘n’ easy way to do it?

Any help is largely appreciated

3 Replies

Well, there are so many ways…
First, Max has a modifier called UVW Xform. It has controls to change the Tiling, Offset and Rotation of UV coordinates, which is equivalent to scaling, moving and rotating the UVs.
I would suggest you add that modifier and set the values via MAXScript…

You could also add a UVW_Unwrap modifier and manipulate the UVs there – there are countless methods in its interfaces.

If the object is a collapsed Editable_Mesh, you could perform all transformations yourself.

And last but not least, the MAPS inside the material also have controls that affect tiling and offset of the texture, so alternatively you could change those instead of manipulating the mesh UVs…

Pick your weapon!

1 Reply
 Goc
(@goc)
Joined: 11 months ago

Posts: 0

Hi Bobo, thanks for your reply
I’m doing this as an optimization tool for a game we’re making here… I’d like to do it without adding any modifiers to the stack… And I know about the MAPS, but if I do that the exported UV’s will not match the map in MAX (exporter limitation. It doesn’t take the tilling and the rest of the material stuff into account when exporting UV’s)

I’ll look into the Editable_Mesh methods for it… Will give feedback shorty

 Goc

There, I’ve made a tool that can take all of the textures in a scene, rescale them and fit them into a single texture and then remap all of the objects in the scene to that single texture.

The graphics department should worship me now

Thanks again Bobo