Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 3dAsmol79/0143ba58398f2d2a6c60870190a3377e to your computer and use it in GitHub Desktop.
Save 3dAsmol79/0143ba58398f2d2a6c60870190a3377e to your computer and use it in GitHub Desktop.
MaxScript: Apply UVW Map Modifier with Real World Scale Box
(
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