diff --git a/__init__.py b/__init__.py index 195e288..38756e2 100644 --- a/__init__.py +++ b/__init__.py @@ -4,7 +4,7 @@ bl_info = { "name": "Background plane manager", "description": "Manage the background image planes and grease pencil object relative to a camera", "author": "Samuel Bernou", - "version": (0, 4, 2), + "version": (0, 4, 3), "blender": (3, 5, 0), "location": "View3D", "warning": "", @@ -22,8 +22,8 @@ from . import preferences from . import fn -from . file_utils import install_module -install_module('psd_tools', 'psd-tools') +#from . file_utils import install_module +#install_module('psd_tools', 'psd-tools') """ from . import auto_modules diff --git a/export_psd_layers.py b/export_psd_layers.py index 2a1ddd4..d11a9b8 100644 --- a/export_psd_layers.py +++ b/export_psd_layers.py @@ -4,10 +4,12 @@ from bpy_extras.io_utils import ImportHelper import sys import os import json -import psd_tools +#import psd_tools from pathlib import Path from time import time from . import fn +from . file_utils import install_module + def print_progress(progress, min=0, max=100, barlen=50, prefix='', suffix='', line_width=80): @@ -32,6 +34,8 @@ def export_psd(psd_file, output=None, scale=0.5): string psd_file - the filepath of the psd file ''' + psd_tools = install_module('psd_tools', 'psd-tools') + # def get_layers(layer, all_layers=[]): # if not layer.is_group(): # return