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
if LayerManager.getLayerFromName layerName0001SiteContext == undefined then | |
layer = LayerManager.newLayerFromName "0001_Site_Context" | |
lpi = layerManager.getLayerFromName "0001_Site_Context" | |
lpi.current = true |
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
on btn_RandomWireColour pressed do | |
( | |
RanWireObjs = selection as array | |
for i = 1 to RanWireObjs.count do | |
RanWireObjs[i].wirecolor = color (random 0 255) (random 0 255) (random 0 255) | |
) |
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
( | |
if selection.count >= 2 then | |
( | |
objs = for i in selection collect i | |
disableSceneRedraw() | |
try | |
( | |
main_obj = objs[1] | |
convertTo main_obj TriMeshGeometry | |
progressStart "Make Unique" |
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
( | |
MeshColSmoothMod = SmoothModifier() | |
MeshCollobjs = selection as array | |
for i = 1 to MeshCollobjs.count do | |
( | |
ConvertToMesh MeshCollobjs[i] | |
addModifier MeshCollobjs[i] (MeshColSmoothMod) | |
MeshCollobjs[i].modifiers[#Smooth].autoSmooth = False | |
MeshCollobjs[i].modifiers[#Smooth].preventIndirect = False | |
ConvertToMesh MeshCollobjs[i] |
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 |