No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

filenameFix.py 1.1KB

123456789101112131415161718192021222324
  1. def filenameFix(s):
  2. if nuke.env["MACOS"]:
  3. s = s.replace("//calculon/o/", "/Volumes/O/", 1)
  4. s = s.replace("//hades/p/", "/Volumes/P/", 1)
  5. s = s.replace("//zeus/r/", "/Volumes/R/", 1)
  6. s = s.replace("/Volumes/192.168.0.253/", "/Volumes/O/", 1)
  7. s = s.replace("/Volumes/192.168.0.251/", "/Volumes/P/", 1)
  8. s = s.replace("/Volumes/192.168.0.250/", "/Volumes/R/", 1)
  9. s = s.replace("O:/", "/Volumes/O/", 1)
  10. s = s.replace("P:/", "/Volumes/P/", 1)
  11. s = s.replace("R:/", "/Volumes/R/", 1)
  12. else:
  13. s = s.replace("/Volumes/O/", "//calculon/o/", 1)
  14. s = s.replace("/Volumes/P/", "//hades/p/", 1)
  15. s = s.replace("/Volumes/R/", "//zeus/r/", 1)
  16. s = s.replace("O:/", "//calculon/o/", 1)
  17. s = s.replace("P:/", "//hades/p/", 1)
  18. s = s.replace("R:/", "//zeus/r/", 1)
  19. s = s.replace("o:/", "//calculon/o/", 1)
  20. s = s.replace("p:/", "//hades/p/", 1)
  21. s = s.replace("r:/", "//zeus/r/", 1)
  22. # for LUT
  23. s = s.replace("/Volumes/Libs/Nuke/arri/", "//hades/p/env/nuke/_workgroup/6.0v5/lut/", 1)
  24. return s