Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2010
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. import os
  2. import fileinput
  3.  
  4. _path = "C://Documents and Settings//user//Desktop//file.nk"
  5. _passes = [ 'file "BTY"','file "PUZ"','file "OCCLU"','file "MVE"','file "DPF"','file "NRM"','file "GRU"','file "FRESNEL MAT"',
  6.  'file "SKIN REFL SPC"','file "SKIN GLOSSY REFL"','file "SKIN BRDF SPC"','file "SKIN MAT"','file "OILY SPC"','file "SCENE EYES SPEC"','file "PUZ2"',
  7.  'file "SPEC"','file "REFL"','file "SSS"','file "ALB"','file "AMB"','file "DIF"','file "DET"']
  8.  
  9. _replaceby = " file Y:/Production/xxx/shots/here/versions/v026/version.tga"
  10.  
  11. fopen = open(_path).read()  
  12. for passe in _passeFettel:
  13.     fopen.write(re.sub(passe, _fileFettel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement