MAXSCRIPT: Change the UVW Unwrap checker size on the fly.

by

Script that does something noone thinks about unless needed - adjusts size (or tiling if you wish) of checker board from UVW Unwrap modifier window (so it doesnt touch your material tiling, and checker vanishes after you exit UWV Modifier)

Includes two macros, one for enlarging one for shrinking the tiling value:

macroScript Chkr_plus category:"_Piro_Tools" tooltip:"+"
(
chkCoords = selection[1].unwrap_uvw.checkermaterial.diffusemap.coords
chkCoords.u_tiling = chkCoords.u_tiling + 1
chkCoords.v_tiling = chkCoords.v_tiling + 1
)

macroScript Chkr_minus category:"_Piro_Tools" tooltip:"-"
(
chkCoords = selection[1].unwrap_uvw.checkermaterial.diffusemap.coords
chkCoords.u_tiling = chkCoords.u_tiling - 1
chkCoords.v_tiling = chkCoords.v_tiling - 1
)

 

As always, find it under: