From 8e4f45647c6ba6c99ee453a259819906c90db869 Mon Sep 17 00:00:00 2001 From: Torrin Leonard <82110564+torrinworx@users.noreply.github.com> Date: Sun, 23 Jan 2022 18:36:57 -0500 Subject: [PATCH] Small fixes --- src/Main_Generators/Exporter.py | 8 +++++--- src/config.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Main_Generators/Exporter.py b/src/Main_Generators/Exporter.py index ba78362..d60d195 100644 --- a/src/Main_Generators/Exporter.py +++ b/src/Main_Generators/Exporter.py @@ -28,6 +28,7 @@ class bcolors: ERROR = '\033[91m' # RED RESET = '\033[0m' # RESET COLOR + if config.runPreview: config.nftsPerBatch = config.maxNFTsTest config.maxNFTs = config.maxNFTsTest @@ -74,9 +75,9 @@ def render_and_save_NFTs(): bpy.data.collections[j].hide_viewport = True def match_DNA_to_Variant(a): - ''' - Matches each DNA number sepearted by "-" to its attribute, then its variant. - ''' + """ + Matches each DNA number separated by "-" to its attribute, then its variant. + """ listAttributes = list(hierarchy.keys()) listDnaDecunstructed = a.split('-') @@ -221,5 +222,6 @@ def match_DNA_to_Variant(a): print("\nAll NFT PNGs rendered, process finished.") print("Completed all renders in Batch{}.json in ".format(config.renderBatch) + "%.4f seconds" % (time.time() - time_start_1) + "\n") + if __name__ == '__main__': render_and_save_NFTs() diff --git a/src/config.py b/src/config.py index a62a9b9..770b6f1 100644 --- a/src/config.py +++ b/src/config.py @@ -40,7 +40,7 @@ # Example windows: C:\Users\Path\to\Blend_My_NFTs maxNFTs = 0 # The maximum number of NFTs you want to generate. -nftsPerBatch = 0 # Number of NFTs per batch +nftsPerBatch = 0 # Number of NFTs per batch (Batches split maxNFTs into smaller manageable chunks) renderBatch = 0 # The batch number to render in Exporter.py # Set to True to generate images or 3D models depending on your settings below when main.py is run in Blender. Only works