From cd06e2e95128ad9c1a105cc766384a105d341e12 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 13 Aug 2020 11:26:45 +0200 Subject: [PATCH 1/2] removed psd from images extension to not group them in standalone publisher --- .../standalonepublish/widgets/widget_drop_frame.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pype/modules/standalonepublish/widgets/widget_drop_frame.py b/pype/modules/standalonepublish/widgets/widget_drop_frame.py index 785f6adce4..bbe8a0bff5 100644 --- a/pype/modules/standalonepublish/widgets/widget_drop_frame.py +++ b/pype/modules/standalonepublish/widgets/widget_drop_frame.py @@ -18,7 +18,7 @@ class DropDataFrame(QtWidgets.QFrame): ".jng", ".jpeg", ".jpeg-ls", ".jpeg", ".2000", ".jpg", ".xr", ".jpeg", ".xt", ".jpeg-hdr", ".kra", ".mng", ".miff", ".nrrd", ".ora", ".pam", ".pbm", ".pgm", ".ppm", ".pnm", ".pcx", ".pgf", - ".pictor", ".png", ".psd", ".psb", ".psp", ".qtvr", ".ras", + ".pictor", ".png", ".psb", ".psp", ".qtvr", ".ras", ".rgbe", ".logluv", ".tiff", ".sgi", ".tga", ".tiff", ".tiff/ep", ".tiff/it", ".ufo", ".ufp", ".wbmp", ".webp", ".xbm", ".xcf", ".xpm", ".xwd" @@ -37,7 +37,6 @@ class DropDataFrame(QtWidgets.QFrame): "image_file": image_extensions, "video_file": video_extensions } - ffprobe_ignore_extensions = [".psd"] def __init__(self, parent): super().__init__() @@ -284,12 +283,7 @@ class DropDataFrame(QtWidgets.QFrame): if 'file_info' in data: file_info = data['file_info'] - if ( - ext not in self.ffprobe_ignore_extensions - and ( - ext in self.image_extensions or ext in self.video_extensions - ) - ): + if ext in self.image_extensions or ext in self.video_extensions: probe_data = self.load_data_with_probe(filepath) if 'fps' not in data: # default value From 43ad15ccb2e4220b07b076ca97bb9dc999957300 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 13 Aug 2020 11:27:58 +0200 Subject: [PATCH 2/2] added layer index to filename in main groups exporter --- .../standalonepublisher/publish/extract_bg_main_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py b/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py index e00f5858ed..58704c41d2 100644 --- a/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py +++ b/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py @@ -117,7 +117,7 @@ class ExtractBGMainGroups(pype.api.Extractor): ).format(layer.name)) continue - filename = "{}.png".format(layer_name) + filename = "{:0>2}_{}.png".format(layer_idx, layer_name) layer_data = { "index": layer_idx, "name": layer.name,