Using a function to change visual appearance
A previous example showed how you can use script to change the visual appearance of an object. This example extends that principle and shows how you can set up a function, which can control the visual appearance of all objects. This makes it easier to maintain the form and make your script more reusable.
Download: Assure Dynamics Changing visual appearance using function (Rev 1)