script generator for TQC material