Skip to content

Instantly share code, notes, and snippets.

@taikomatsu
Created July 4, 2015 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taikomatsu/193b371c1670d2ca8264 to your computer and use it in GitHub Desktop.
Save taikomatsu/193b371c1670d2ca8264 to your computer and use it in GitHub Desktop.
Copy all textures in current scene
from pymel.core import *
import shutil
copydir = r'z:\path\to\copy'
for o in ls(type='file'):
path = o.fileTextureName.get()
shutil.copy(path, copydir)
print('# Done')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment