Skip to content

Commit cd97251

Browse files
committed
Add comment to file metadata
1 parent 7a27ff9 commit cd97251

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TextureAtlas to GIF and Frames.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,7 @@ def extract_sprites(atlas_path, metadata_path, output_dir, create_gif, create_we
394394
cropped_images.append(cropped_frame)
395395
durations = [round(1000/fps)] * len(cropped_images)
396396
durations[-1] += delay
397-
cropped_images[0].save(os.path.join(output_dir, os.path.splitext(spritesheet_name)[0] + f" {animation_name}.gif"), save_all=True, append_images=cropped_images[1:], disposal=2, optimize=False, duration=durations, loop=0)
398-
397+
cropped_images[0].save(os.path.join(output_dir, os.path.splitext(spritesheet_name)[0] + f" {animation_name}.gif"), save_all=True, append_images=cropped_images[1:], disposal=2, optimize=False, duration=durations, loop=0, comment=f'GIF generated by: TextureAtlas to GIF and Frames v{current_version}')
399398
if not keep_frames:
400399
frames_folder = os.path.join(output_dir, animation_name)
401400
for i in os.listdir(frames_folder):
@@ -491,6 +490,9 @@ def create_scrollable_fnf_help_window():
491490
"Loop delay:\n"
492491
"For anything that doesn't need to smoothly loop like sing poses for characters, 250 ms is recommended (150 ms minimum)\n"
493492
"Idle animations usually looks best with 0"
493+
"Idle animations usually looks best with 0, some do look better with 150-250ms."
494+
"If unsure about the loop delay, start by leaving it at default, start processing, then inspect the generated gifs.\n"
495+
"Doesn't look good? Just double click the animation name in the application and change the delay and start processing again."
494496
)
495497

496498
fnf_help_window = tk.Toplevel()

0 commit comments

Comments
 (0)