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 708B

12345678910111213141516
  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("/Volumes/192.168.0.253/", "/Volumes/O/", 1)
  6. s = s.replace("/Volumes/192.168.0.251/", "/Volumes/P/", 1)
  7. s = s.replace("O:/", "/Volumes/O/", 1)
  8. s = s.replace("P:/", "/Volumes/P/", 1)
  9. else:
  10. s = s.replace("/Volumes/O/", "//calculon/o/", 1)
  11. s = s.replace("/Volumes/P/", "//hades/p/", 1)
  12. s = s.replace("O:/", "//calculon/o/", 1)
  13. s = s.replace("P:/", "//hades/p/", 1)
  14. s = s.replace("o:/", "//calculon/o/", 1)
  15. s = s.replace("p:/", "//hades/p/", 1)
  16. return s