Export ImageTexture node for an image identified in material node tree #39

Open
Vincent Marchetti wants to merge 12 commits from vmarchetti/io_scene_x3d:image-export into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 832ed4b4dd - Show all commits

View File

@ -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

why is this temporary folder needed? Could you add that to the comment?

why is this temporary folder needed? Could you add that to the comment?
# 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 )