ya2 · news · projects · code · about

refactoring of functional tests
[pmachines.git] / lib / tools / build_metal_texture.py
1 from sys import argv
2 from os.path import abspath
3 from os import system
4
5 ao = abspath(argv[1])
6 roughness = abspath(argv[2])
7 metal = abspath(argv[3])
8 fout = abspath(argv[4])
9
10 system('cp %s %s' % (ao, fout))
11 cmd = 'convert %s %s -alpha off -compose copy_green -composite %s' % (fout, roughness, fout)
12 print(cmd)
13 system(cmd)
14 cmd = 'convert %s %s -alpha off -compose copy_blue -composite %s' % (fout, metal, fout)
15 print(cmd)
16 system(cmd)