Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
torrinworx committed Jan 23, 2022
1 parent dd19010 commit 8e4f456
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/Main_Generators/Exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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('-')
Expand Down Expand Up @@ -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()
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e4f456

Please sign in to comment.