kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Reformatting print statements
rodzic
cabefc04d1
commit
5e353e42b6
|
@ -137,7 +137,7 @@ def render_and_save_NFTs(input):
|
||||||
|
|
||||||
# If failed Batch is detected and user is resuming its generation:
|
# If failed Batch is detected and user is resuming its generation:
|
||||||
if input.fail_state:
|
if input.fail_state:
|
||||||
print(f"{bcolors.ERROR}\nResuming Failed Batch {input.failed_batch}\n{bcolors.RESET}")
|
print(f"{bcolors.ERROR}\nResuming Batch #{input.failed_batch}\n{bcolors.RESET}")
|
||||||
NFTs_in_Batch, hierarchy, BatchDNAList = getBatchData(input.failed_batch, input.batch_json_save_path)
|
NFTs_in_Batch, hierarchy, BatchDNAList = getBatchData(input.failed_batch, input.batch_json_save_path)
|
||||||
for a in range(input.failed_dna):
|
for a in range(input.failed_dna):
|
||||||
del BatchDNAList[0]
|
del BatchDNAList[0]
|
||||||
|
@ -145,7 +145,7 @@ def render_and_save_NFTs(input):
|
||||||
|
|
||||||
# If user is generating the normal way:
|
# If user is generating the normal way:
|
||||||
else:
|
else:
|
||||||
print(f"\nGenerating Batch {input.batchToGenerate}\n")
|
print(f"\nGenerating Batch #{input.batchToGenerate}\n")
|
||||||
NFTs_in_Batch, hierarchy, BatchDNAList = getBatchData(input.batchToGenerate, input.batch_json_save_path)
|
NFTs_in_Batch, hierarchy, BatchDNAList = getBatchData(input.batchToGenerate, input.batch_json_save_path)
|
||||||
save_generation_state(input)
|
save_generation_state(input)
|
||||||
x = 1
|
x = 1
|
||||||
|
@ -262,8 +262,14 @@ def render_and_save_NFTs(input):
|
||||||
# ob = bpy.data.objects['Text'] # Object name
|
# ob = bpy.data.objects['Text'] # Object name
|
||||||
# ob.data.body = str(f"DNA: {full_single_dna}") # Set text of Text Object ob
|
# ob.data.body = str(f"DNA: {full_single_dna}") # Set text of Text Object ob
|
||||||
|
|
||||||
print(f"\n{bcolors.OK}|--- Generating NFT {x}/{NFTs_in_Batch}: {name} ---|{bcolors.RESET}")
|
print(f"\n{bcolors.OK}======== Generating NFT {x}/{NFTs_in_Batch}: {name} ========{bcolors.RESET}")
|
||||||
print(f"DNA attribute list:\n{dnaDictionary}\nDNA Code:{single_dna}")
|
print(f"Variants selected:")
|
||||||
|
print(f"{dnaDictionary}")
|
||||||
|
if input.enableMaterials:
|
||||||
|
print(f"Materials selected:")
|
||||||
|
print(f"{materialdnaDictionary}")
|
||||||
|
|
||||||
|
print(f"DNA Code:{full_single_dna}")
|
||||||
|
|
||||||
for c in dnaDictionary:
|
for c in dnaDictionary:
|
||||||
collection = dnaDictionary[c]
|
collection = dnaDictionary[c]
|
||||||
|
|
|
@ -11,7 +11,7 @@ from collections import Counter, defaultdict
|
||||||
from . import DNA_Generator
|
from . import DNA_Generator
|
||||||
|
|
||||||
|
|
||||||
# ======== CONSTANTS ======== #
|
# ======== ENABLE DEBUG ======== #
|
||||||
|
|
||||||
# This section is used for debugging, coding, or general testing purposes.
|
# This section is used for debugging, coding, or general testing purposes.
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue