diff --git a/pype/plugins/standalonepublisher/publish/extract_bg_for_compositing.py b/pype/plugins/standalonepublisher/publish/extract_bg_for_compositing.py index 064c226ff7..db64a408e9 100644 --- a/pype/plugins/standalonepublisher/publish/extract_bg_for_compositing.py +++ b/pype/plugins/standalonepublisher/publish/extract_bg_for_compositing.py @@ -52,7 +52,11 @@ class ExtractBGForComp(pype.api.Extractor): for repre in tuple(repres): # Skip all files without .psd extension - if repre["ext"] != ".psd": + repre_ext = repre["ext"].lower() + if repre_ext.startswith("."): + repre_ext = repre_ext[1:] + + if repre_ext != "psd": continue # Prepare publish dir for transfers diff --git a/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py b/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py index 04511ff723..e18baf378e 100644 --- a/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py +++ b/pype/plugins/standalonepublisher/publish/extract_bg_main_groups.py @@ -61,7 +61,11 @@ class ExtractBGMainGroups(pype.api.Extractor): for repre in tuple(repres): # Skip all files without .psd extension - if repre["ext"] != ".psd": + repre_ext = repre["ext"].lower() + if repre_ext.startswith("."): + repre_ext = repre_ext[1:] + + if repre_ext != "psd": continue # Prepare json filepath where extracted metadata are stored diff --git a/pype/plugins/standalonepublisher/publish/extract_images_from_psd.py b/pype/plugins/standalonepublisher/publish/extract_images_from_psd.py index 5a2109478c..3cffaf17d9 100644 --- a/pype/plugins/standalonepublisher/publish/extract_images_from_psd.py +++ b/pype/plugins/standalonepublisher/publish/extract_images_from_psd.py @@ -46,7 +46,11 @@ class ExtractImagesFromPSD(pype.api.Extractor): for repre in tuple(repres): # Skip all files without .psd extension - if repre["ext"] != ".psd": + repre_ext = repre["ext"].lower() + if repre_ext.startswith("."): + repre_ext = repre_ext[1:] + + if repre_ext != "psd": continue # TODO add check of list of "files" value