added Jiri as a contributer to the obj importer
Added a new script - 'Dump All Images to Path' This script copies all the images used by 1 blend to a spesified path and references the new images from Blender Usefull for moving projects between computers or when you reference many images. naming collisions and multiple images using the same image path are delt with properly only creating new image names when needed. Blender images will reference the newly copied files - So be mindfull when you save your blend after running the script. Notes, images with the path "Untitled will be ignored" Image path collisions are managed by enumerating the path names so images will never be overwritten at the target path.
This commit is contained in:
@@ -10,12 +10,27 @@ def Error_NoMeshUvActive():
|
||||
|
||||
# File I/O messages
|
||||
def Error_NoFile(path):
|
||||
'''True if file missing, False if files there'''
|
||||
'''True if file missing, False if files there
|
||||
|
||||
Use simply by doing...
|
||||
if Error_NoFile(path): return
|
||||
'''
|
||||
if not sys.exists(sys.expandpath(path)):
|
||||
Draw.PupMenu("Error%t|Can't open file: " + path)
|
||||
return True
|
||||
return False
|
||||
|
||||
def Error_NoDir(path):
|
||||
'''True if dirs missing, False if dirs there
|
||||
|
||||
Use simply by doing...
|
||||
if Error_NoDir(path): return
|
||||
'''
|
||||
if not sys.exists(sys.expandpath(path)):
|
||||
Draw.PupMenu("Error%t|Path does not exist: " + path)
|
||||
return True
|
||||
return False
|
||||
|
||||
def Warning_SaveOver(path):
|
||||
'''Returns - True to save, False dont save'''
|
||||
if sys.exists(sys.expandpath(path)):
|
||||
|
||||
Reference in New Issue
Block a user