Export ImageTexture node for an image identified in material node tree #39
@ -11,7 +11,7 @@ import logging
|
||||
logger = logging.getLogger("export_x3d")
|
||||
|
||||
import math
|
||||
import os
|
||||
|
||||
|
||||
import bpy
|
||||
import mathutils
|
||||
@ -269,9 +269,10 @@ def export(file,
|
||||
# if path_mode is copy, create a temporary folder particular
|
||||
|
||||
# to this export operation, to stored image data to an image_file,
|
||||
# for those image in a packed set or otherwise not existing on disk
|
||||
import os, os.path
|
||||
if path_mode == 'COPY':
|
||||
blender_tempfolder = bpy.app.tempdir
|
||||
import uuid, os, os.path
|
||||
import uuid
|
||||
temporary_image_directory = os.path.join(blender_tempfolder,uuid.uuid4().hex)
|
||||
os.mkdir(temporary_image_directory)
|
||||
logger.info("temporary_image_directory: %s" % temporary_image_directory )
|
||||
|
Loading…
Reference in New Issue
Block a user
why is this temporary folder needed? Could you add that to the comment?