torrinworx / Blend_My_NFTs

Easily generate thousands of 3D models, images, and animation automatically in Blender for free with Blend_My_NFTs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List index is out of range?

jcruzfff opened this issue · comments

Python: Traceback (most recent call last):
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/init.py", line 352, in execute
DNA_Generator.send_To_Record_JSON(collectionSize, nftsPerBatch, save_path, enableRarity, enableLogic, logicFile, Blend_My_NFTs_Output)
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/main/DNA_Generator.py", line 278, in send_To_Record_JSON
create_nft_data()
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/main/DNA_Generator.py", line 235, in create_nft_data
DataDictionary = generateNFT_DNA(collectionSize, logicFile, enableRarity, enableLogic)
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/main/DNA_Generator.py", line 192, in generateNFT_DNA
DNAList = create_DNAList()
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/main/DNA_Generator.py", line 186, in create_DNAList
DNASetReturn |= {''.join([dnaPushToList()]) for _ in range(collectionSize - len(DNASetReturn))}
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/main/DNA_Generator.py", line 186, in
DNASetReturn |= {''.join([dnaPushToList()]) for _ in range(collectionSize - len(DNASetReturn))}
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/main/DNA_Generator.py", line 170, in singleCompleteDNA
singleDNA = Rarity.createDNArarity(hierarchy)
File "/Users/e/Library/Application Support/Blender/3.0/scripts/addons/Blend_My_NFTs-main/main/Rarity.py", line 38, in createDNArarity
variantByNum = random.choices(number_List_Of_i, weights=rarity_List_Of_i, k=1)
File "/Applications/Blender.app/Contents/Resources/3.0/python/lib/python3.9/random.py", line 500, in choices
total = cum_weights[-1] + 0.0 # convert to float

IndexError: list index out of range

location: :-1

Screen Shot 2022-05-07 at 5 08 44 PM

Screen Shot 2022-05-07 at 5 09 08 PM

Im pretty new to this. I must've set something up incorrectly..

Looks like it's an issue with the Mat collection. Make sure all Variants are represented by collections, not objects. Hope this helps!

thanks!