Fit the UVW Mapping Gizmo

3 votes
Date Updated: 
Author Name: 

Perform Fit gizmo operation on UVW mapping modifier on all selected objects.



  • Written as macro script
  • Optimized measurements
  • Allows UVWmap on any level in the mod-stack
  • Perform Fit operation on all selected objects

Thanks to Borislav "Bobo" Petrov for the nice tutorial:

Additional Info: 


When you add/apply NEW UVWmap modifier it AUTO Fit
(so you NO need any script to re-fit your UVWmaps gizmo)

AFTER changing settings of EXISTENT UVWmap modifier
ONLY THEN you need to Re-Fit it gizmo
(and this is the PURPOSE OF THIS SCRIPT)!

The script take care of the CURRENT UVWmap settings
and AUTOMATIZE the Fit operation on multiple UVWmaps.


Adding/applying Any modifier at ONCE to multiple objects
produce One INSTANCE modifier for All objects,
AND as you guess (or not), this is NOT the same AS
applying UNIQUE modifier to EACH object.

Just to append for clarification, there is NO
any modifier in 3ds Max that support MULTIPLE GIZMO'S (!)
So NOT expect an instance UVWmap modifier to do miracles.

IF we could somehow fit "personally" multiple gizmo's
ONLY using ONE instance UVWmap modifier
THEN we do not ever need to wrote any script.

Well, this is an essential, common knowledge of Max.
If you have any common usage questions about UVWmaps
then just ask in the forum instead.


Version Requirement: 
3ds max 2008 and higher (or need [AVG] Avguard Extensions for previous)
uvwmapmodfit.ms3.73 KB


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

Hi Daniel

Well, as I see, you intend to integrate the functionality of my script to your own script (which has some setup before uvw fit operation).

So, whats do my script though? Its NOT create OR apply UVW modifiers, ONLY perform Fit operation on Existing UVW Map modifiers. In other words, make sure your script WAS applied Unique UVWmaps to each object. Else, you know, no way 1 instance mod to fit to multiple objects, right?

To integrate my code to your script, you need to copy all 3 functions inside - UVWMapModFit (main function) + isModOnNode & getModIndex. And at the end of my code you can see how I call my main function on each selected object: for obj in selection do UVWMapModFit obj.


my recent MAXScripts RSS (archive here)

danieljhatton's picture

Needs tweaking

What I wanted to do with this script is create a large number of windows. Use the detach poly script. Center all pivots to each individual pane of glass, THEN, apply a Uvw map to everything at once, make said Uvw map unique in respect of everything, THEN hit uvw fit. I presumed this would apply a Uvw fit unique to each object, but what it does is apply one Uvw map in the middle of everything, not unique to each object.

othoap's picture

Thanks for the comformation

My original need was to APPLY fitted UVWmaps to a selected group of objects at one time. Max applies the maps to a group but dose not fit them to each individual object.

This maybe confusing to people who don't know this project started on a different thread.

Thanks for all your help.

Anubis's picture

not clear?

As title and description say - the script only refit the gizmo on existing UVWmap's (not apply new modifiers). When add new UVWmap's you not need those script because they're auto fitted.

my recent MAXScripts RSS (archive here)

othoap's picture

Me so stupid

Sorry just not getting it.

Are you saying add the UVWmap to each box one at a time? Then if the map get out of wack you can select mutiple objects that all have gismo and your script will refit them?

"Fit the UVW Mapping Gizmo" is meant to work on refitting not apply the UVWmap to a group?

Anubis's picture

Hi Othoap

I think you add UVWmap as instance to both boxes. Add unique modifier to each object ;)

P.S. - When we add UVWmap it zigmo auto-fit, but if you change #maptype or #axis of the mod after applying, you'll need to press Fit button and this is the task that current script automatize.

my recent MAXScripts RSS (archive here)

othoap's picture

how Dose this work?

-I made two box's
-Selected the two box's
-Applied a box UVWmap
-Ran "Fit the UVW Mapping Gizmo"

Result - The UVWmaps were resized and placed between the two box's. Guess I'm doing it wrong.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.