From c6da476c77efc2e2a433b37bb7c1fb9985035584 Mon Sep 17 00:00:00 2001 From: ZadesSC Date: Tue, 17 Sep 2019 01:18:13 -0700 Subject: [PATCH] Working portrait set generator --- scripts/art_generator/art_set_generator.py | 4 ++-- scripts/art_generator/config/art_tt3k_dw9_portraits.yaml | 4 ++-- scripts/art_generator/config/portrait_set_config.yaml | 4 ++-- scripts/art_generator/tt3k_dw9_art_tool.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/art_generator/art_set_generator.py b/scripts/art_generator/art_set_generator.py index 5fcdf0e..f221737 100644 --- a/scripts/art_generator/art_set_generator.py +++ b/scripts/art_generator/art_set_generator.py @@ -67,7 +67,7 @@ def build_portrait_set(self, build_target, target_dir): art_data = ps_data.get(selected_art_set) character_art_data = art_data.get("arts").get(art) pp = pprint.PrettyPrinter(indent=4) - pp.pprint(character_art_data) + #pp.pprint(character_art_data) #run art tool here char_source_dir = Path(config_data.get("source_dir")).joinpath(config_data.get("art_sets").get(selected_art_set).get("dir")).joinpath(character_art_data.get("src_dir")) @@ -89,7 +89,7 @@ def build_portrait_set(self, build_target, target_dir): print(char_element) print(char_gender) print(char_is_generic) - #art_tool.build_target_folder_structure(source_dir, target_dir, character_folder, character_element, character_gender, is_generic) + art_tool.build_target_folder_structure(char_source_dir, char_target_dir, char_card, char_element, char_gender, char_is_generic) def main(): build_target = args.build_target diff --git a/scripts/art_generator/config/art_tt3k_dw9_portraits.yaml b/scripts/art_generator/config/art_tt3k_dw9_portraits.yaml index 85d6d76..80a1e3d 100644 --- a/scripts/art_generator/config/art_tt3k_dw9_portraits.yaml +++ b/scripts/art_generator/config/art_tt3k_dw9_portraits.yaml @@ -517,7 +517,7 @@ arts: x_pivot: 0.5000 y_pivot: 0.5000 jiang_wei: - src_dir: jian_wei + src_dir: jiang_wei char_dir_name: 3k_main_hero_special_fire_jiang_wei char_file_name: 3k_main_hero_special_fire_jiang_wei element: metal @@ -981,7 +981,7 @@ arts: x_pivot: 0.5000 y_pivot: 0.5000 wei_yan: - src_dir: wei_yan_2 + src_dir: wei_yan char_dir_name: 3k_main_hero_special_fire_wei_yan char_file_name: 3k_main_hero_special_fire_wei_yan element: fire diff --git a/scripts/art_generator/config/portrait_set_config.yaml b/scripts/art_generator/config/portrait_set_config.yaml index 890ab73..0b71f64 100644 --- a/scripts/art_generator/config/portrait_set_config.yaml +++ b/scripts/art_generator/config/portrait_set_config.yaml @@ -1,11 +1,11 @@ enabled: True -source_dir: /mnt/c/Users/zades/Pictures/tt3k_workspace/ +source_dir: /mnt/d/Projects/tt3k_dw9_art/portraits/ art_sets: tt3k_dw9_portraits: dir: dw9 file_name: art_tt3k_dw9_portraits.yaml tt3k_dw9_alt: - dir: alt + dir: dw9_alt file_name: art_tt3k_dw9_portraits_alt.yaml sad_puzzle: dir: sad_puzzle diff --git a/scripts/art_generator/tt3k_dw9_art_tool.py b/scripts/art_generator/tt3k_dw9_art_tool.py index 9b357ed..c23fb7b 100644 --- a/scripts/art_generator/tt3k_dw9_art_tool.py +++ b/scripts/art_generator/tt3k_dw9_art_tool.py @@ -310,7 +310,7 @@ def build_unique_target_folder(self, target_dir, character_dir, image_dict): self.insert_text_chunk_to_png(composite_small_panel_dir.joinpath(self.HAPPY_DIR).joinpath(composite_img), happy_comment) self.insert_text_chunk_to_png(composite_small_panel_dir.joinpath(self.NORMAL_DIR).joinpath(composite_img), normal_comment) - for subdir_dict in SUBDIR_DICTS: + for subdir_dict in self.SUBDIR_DICTS: subdir = subdir_dict.get('dir') img_key = subdir_dict.get('img_key') img_large_key = subdir_dict.get('img_large_key')