kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Reconfiguring Script_Ignore collection removal
rodzic
182396ed48
commit
e4feb7b255
Plik binarny nie jest wyświetlany.
|
@ -47,7 +47,7 @@ while i < Number_Of_Possible_Batches:
|
||||||
|
|
||||||
batchDictionaryObject = json.dumps(batchDictionary, indent=1, ensure_ascii=True)
|
batchDictionaryObject = json.dumps(batchDictionary, indent=1, ensure_ascii=True)
|
||||||
|
|
||||||
with open(batch_path + ("/Batch{}.json".format(i+1)), "w") as outfile:
|
with open(batch_path + ("Batch{}.json".format(i+1)), "w") as outfile:
|
||||||
outfile.write(batchDictionaryObject)
|
outfile.write(batchDictionaryObject)
|
||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
|
@ -60,5 +60,5 @@ incompleteBatch["hierarchy"] = hierarchy
|
||||||
|
|
||||||
incompleteBatch = json.dumps(incompleteBatch, indent=1, ensure_ascii=True)
|
incompleteBatch = json.dumps(incompleteBatch, indent=1, ensure_ascii=True)
|
||||||
|
|
||||||
with open(batch_path + ("/Batch{}.json".format(i+1)), "w") as outfile2:
|
with open(batch_path + ("Batch{}.json".format(i+1)), "w") as outfile2:
|
||||||
outfile2.write(incompleteBatch)
|
outfile2.write(incompleteBatch)
|
|
@ -27,7 +27,19 @@ def returnData():
|
||||||
for i in bpy.data.collections:
|
for i in bpy.data.collections:
|
||||||
listAllCollections.append(i.name)
|
listAllCollections.append(i.name)
|
||||||
|
|
||||||
listAllCollections.remove("Script_Ignore")
|
exclude = bpy.data.collections["Script_Ignore"]
|
||||||
|
|
||||||
|
inScriptIgnore = list(exclude.children)
|
||||||
|
|
||||||
|
inScriptIgnoreName = []
|
||||||
|
|
||||||
|
for i in inScriptIgnore:
|
||||||
|
inScriptIgnoreName.append(i.name)
|
||||||
|
|
||||||
|
for i in inScriptIgnoreName:
|
||||||
|
listAllCollections.remove(i)
|
||||||
|
|
||||||
|
listAllCollections.remove(exclude.name)
|
||||||
|
|
||||||
exclude = ["_","1","2","3","4","5","6","7","8","9","0"]
|
exclude = ["_","1","2","3","4","5","6","7","8","9","0"]
|
||||||
attributeCollections = copy.deepcopy(listAllCollections)
|
attributeCollections = copy.deepcopy(listAllCollections)
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
{
|
{
|
||||||
"numNFTsGenerated": 64,
|
"numNFTsGenerated": 32,
|
||||||
"hierarchy": {
|
"hierarchy": {
|
||||||
"AreaLight": {
|
"AreaLight": {
|
||||||
"BobisAlive_1_0": {
|
"BobisAlive_1_0": {
|
||||||
"name": "BobisAlive",
|
"name": "BobisAlive",
|
||||||
"number": "1",
|
"number": "1",
|
||||||
"rarity": "0"
|
"rarity": "0"
|
||||||
},
|
|
||||||
"AreaLight_2_0": {
|
|
||||||
"name": "AreaLight",
|
|
||||||
"number": "2",
|
|
||||||
"rarity": "0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Cube": {
|
"Cube": {
|
||||||
|
@ -106,38 +101,6 @@
|
||||||
"1-2-2-2-1-1",
|
"1-2-2-2-1-1",
|
||||||
"1-2-2-2-1-2",
|
"1-2-2-2-1-2",
|
||||||
"1-2-2-2-2-1",
|
"1-2-2-2-2-1",
|
||||||
"1-2-2-2-2-2",
|
"1-2-2-2-2-2"
|
||||||
"2-1-1-1-1-1",
|
|
||||||
"2-1-1-1-1-2",
|
|
||||||
"2-1-1-1-2-1",
|
|
||||||
"2-1-1-1-2-2",
|
|
||||||
"2-1-1-2-1-1",
|
|
||||||
"2-1-1-2-1-2",
|
|
||||||
"2-1-1-2-2-1",
|
|
||||||
"2-1-1-2-2-2",
|
|
||||||
"2-1-2-1-1-1",
|
|
||||||
"2-1-2-1-1-2",
|
|
||||||
"2-1-2-1-2-1",
|
|
||||||
"2-1-2-1-2-2",
|
|
||||||
"2-1-2-2-1-1",
|
|
||||||
"2-1-2-2-1-2",
|
|
||||||
"2-1-2-2-2-1",
|
|
||||||
"2-1-2-2-2-2",
|
|
||||||
"2-2-1-1-1-1",
|
|
||||||
"2-2-1-1-1-2",
|
|
||||||
"2-2-1-1-2-1",
|
|
||||||
"2-2-1-1-2-2",
|
|
||||||
"2-2-1-2-1-1",
|
|
||||||
"2-2-1-2-1-2",
|
|
||||||
"2-2-1-2-2-1",
|
|
||||||
"2-2-1-2-2-2",
|
|
||||||
"2-2-2-1-1-1",
|
|
||||||
"2-2-2-1-1-2",
|
|
||||||
"2-2-2-1-2-1",
|
|
||||||
"2-2-2-1-2-2",
|
|
||||||
"2-2-2-2-1-1",
|
|
||||||
"2-2-2-2-1-2",
|
|
||||||
"2-2-2-2-2-1",
|
|
||||||
"2-2-2-2-2-2"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Plik binarny nie jest wyświetlany.
28
conFig.py
28
conFig.py
|
@ -1,15 +1,21 @@
|
||||||
'''Configure all parameters for NFT generatoin in this file'''
|
import platform
|
||||||
|
|
||||||
#DOES NOTHING GO TO BLENDER "STARTUP" FILE
|
mac = "Darwin"
|
||||||
|
windows = "Windows"
|
||||||
|
slash = ""
|
||||||
|
|
||||||
# The number of NFTs desired to be minted:
|
if platform.system() == mac:
|
||||||
numNFTs = 96
|
slash = "/"
|
||||||
nftsPerBatch = 5
|
elif platform.system() == windows:
|
||||||
renderBatch = 1
|
slash = '\\'
|
||||||
imageName = "ThisCozyPlace"
|
|
||||||
|
|
||||||
# The path to the "Blender_Image_Generator" file
|
numNFTs = 96 # Not yet in code - does nothing
|
||||||
|
|
||||||
save_path = '/Users/torrinleonard/Desktop/Blend_My_NFTs'
|
nftsPerBatch = 5 # Number of NFTs per batch
|
||||||
batch_path = '/Users/torrinleonard/Desktop/Blend_My_NFTs/Batch_Json_files'
|
renderBatch = 1 # The number of the batch to render in PNG-Generator
|
||||||
images_path = '/Users/torrinleonard/Desktop/Blend_My_NFTs/Images from PNG Generator'
|
imageName = "ThisCozyPlace" # The name of the NFT image produces by PNG-Generator
|
||||||
|
|
||||||
|
|
||||||
|
save_path = '/Users/torrinleonard/Desktop/Blend_My_NFTs' # The path to the "Blender_Image_Generator" folder
|
||||||
|
batch_path = save_path + slash + 'Batch_Json_files'
|
||||||
|
images_path = save_path + slash + 'Images from PNG Generator'
|
Ładowanie…
Reference in New Issue