actionMan.executeAction 0 "40021" -- Selection: Select All max select all actionMan.executeAction 0 "50048" -- Tools: Material Editor Toggle max mtledit $.material = meditMaterials[5] max quick render