Last active
June 30, 2018 14:26
-
-
Save 3dAsmol79/0143ba58398f2d2a6c60870190a3377e to your computer and use it in GitHub Desktop.
MaxScript: Apply UVW Map Modifier with Real World Scale Box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
UvwRws = Uvwmap() | |
UvwRwsObjs = selection as array | |
for i = 1 to UvwRwsObjs.count do | |
( | |
addModifier UvwRwsObjs[i] (UvwRws) | |
UvwRwsObjs[i].modifiers[#UVW_Map].maptype = 4 | |
UvwRwsObjs[i].modifiers[#UVW_Map].realWorldMapSize = on | |
UvwRwsObjs[i].modifiers[#UVW_Map].utile = 1 | |
UvwRwsObjs[i].modifiers[#UVW_Map].vtile = 1 | |
UvwRwsObjs[i].modifiers[#UVW_Map].length = 1 | |
UvwRwsObjs[i].modifiers[#UVW_Map].width = 1 | |
UvwRwsObjs[i].modifiers[#UVW_Map].height = 1 | |
print UvwRwsObjs[i].name | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment