Skip to content

Commit

Permalink
Working portrait set generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ZadesSC committed Sep 17, 2019
1 parent e28ba5b commit c6da476
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scripts/art_generator/art_set_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/art_generator/config/art_tt3k_dw9_portraits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/art_generator/config/portrait_set_config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/art_generator/tt3k_dw9_art_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c6da476

Please sign in to comment.