Paste Code
Paste Blends
Paste Images
import bpy
import shutil
import os

folder = os.path.dirname(bpy.data.filepath ) + os.path.sep
textfolder = folder+"TEXTURES"+os.path.basename(bpy.data.filepath).rpartition(".")[0]
if not os.path.exists(textfolder):
os.mkdir(textfolder)
for image in bpy.data.images :
if image.source == "FILE":
image.filepath.replace("//",folder) , image.name
fl = shutil.copy(image.filepath.replace("//",folder),textfolder)
image.filepath = fl
  1. import bpy
  2. import shutil
  3. import os
  4.  
  5. folder = os.path.dirname(bpy.data.filepath ) + os.path.sep
  6. textfolder = folder+"TEXTURES"+os.path.basename(bpy.data.filepath).rpartition(".")[0]
  7. if not os.path.exists(textfolder):
  8.     os.mkdir(textfolder)
  9.     for image in bpy.data.images :
  10.         if image.source == "FILE":
  11.             image.filepath.replace("//",folder) , image.name
  12.             fl = shutil.copy(image.filepath.replace("//",folder),textfolder)
  13.             image.filepath = fl
go to heaven