Creating and modifying thermal materials from a script