This script makes selection sets from the objects that share the same materials. Each material has to have the suffix "_tg" in its name in order for this script to work properly. It is useful in a specific workflow and it is meant to be used in combination with my other scripts.