kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Moved metaData settings location in config.py
Added default metaDataType format Added more details to Solana metaData formatpull/26/head
rodzic
3239d3b684
commit
504b1af5d3
|
@ -90,7 +90,14 @@ def render_and_save_NFTs():
|
|||
'''
|
||||
This function exports formatted meta data based on the metaDataType variable in config.py
|
||||
'''
|
||||
if metaDataType == "SOL":
|
||||
|
||||
if metaDataType == "DEFAULT":
|
||||
metaData["name"] = name
|
||||
metaData["description"] = config.metaDataDescription
|
||||
metaData["NFT_DNA"] = a
|
||||
metaData["NFT_Variants"] = dnaDictionary
|
||||
|
||||
elif metaDataType == "SOL":
|
||||
metaData["name"] = name
|
||||
metaData["symbol"] = ""
|
||||
metaData["description"] = config.metaDataDescription
|
||||
|
@ -98,15 +105,14 @@ def render_and_save_NFTs():
|
|||
metaData["image"] = ""
|
||||
metaData["animation_url"] = ""
|
||||
metaData["external_url"] = ""
|
||||
metaData["attributes"] = dnaDictionary
|
||||
metaData["attributes"] = {"NFT_DNA": a, "NFT_Variants": dnaDictionary}
|
||||
metaData["collection"] = {"name": "", "family": ""}
|
||||
metaData["properties"] = {"files": [{"uri": "", "type": ""}],
|
||||
"category": "",
|
||||
"creators": [{"address": "", "share": None}]
|
||||
}
|
||||
|
||||
elif metaDataType == "ADA":
|
||||
|
||||
print("Cardano meta data not yet supported. Please visit our discord server for more information.")
|
||||
return
|
||||
return
|
||||
|
||||
|
|
|
@ -9,16 +9,6 @@ imageFileFormat = '' # Dictate the image extension when Blender renders the ima
|
|||
# for a list of file formats supported by Blender. Enter the file extension exactly as specified in
|
||||
# the Blender API documentation above.
|
||||
|
||||
metaDataType = 'SOL' # Select the format of the generated Meta Data for your NFTs blockchain.
|
||||
# ADA - Cardano - Format:
|
||||
# SOL - Solana - Format: https://docs.metaplex.com/nft-standard
|
||||
# ETH - Ethereum - Format:
|
||||
# Note - This is just the information Blend_My_NFTs can provide, you will have to add policy ID and URI information
|
||||
# yourself when you upload and mint your NFT collection.
|
||||
|
||||
metaDataDescription = '' # The description of your NFT that will be inserted into its meta data
|
||||
|
||||
|
||||
# The path to Blend_My_NFTs folder:
|
||||
save_path_mac = '/Users/Path/To/Blend_My_NFTs'
|
||||
save_path_windows = r''
|
||||
|
@ -46,7 +36,6 @@ objectFormatExport = '' # The file format of the objects you would like to expo
|
|||
# obj - The .obj file format *Exports both a .obj and a .mtl files for the same generated object
|
||||
# x3d - The .x3d file format
|
||||
|
||||
|
||||
### Select colour or material.###
|
||||
# Object generation options:
|
||||
enableGeneration = False # When set to true this applies the sets of colors listed below to the objects in the collections named below
|
||||
|
@ -79,6 +68,20 @@ materialList2 = ['Material2', 'Material2.001', 'Material2.002', 'Material2.003',
|
|||
if generationType == 'material': # Do not change this line.
|
||||
colorList = {"Cube_1_33": materialList1, "Sphere_2_0": materialList2}
|
||||
|
||||
metaDataType = 'DEFAULT' # Select the format of the generated Meta Data for your NFTs blockchain.
|
||||
# DEFAULT - The default setting; exports variants, dna, number, name, and rarity of each NFT to a dictionary
|
||||
# ADA - Cardano - Format: Not supported yet.
|
||||
# SOL - Solana - Format: https://docs.metaplex.com/nft-standard
|
||||
# ETH - Ethereum - Format: Not supported yet.
|
||||
|
||||
# NOTE: This is just the information Blend_My_NFTs can provide, you will have to add policy ID, URI information, etc
|
||||
# yourself when you upload and mint your NFT collection.
|
||||
# DISCLAIMER: These are only templates based on the common standards for the given blockchain, you will have to modify
|
||||
# and fill them in with a script of your own when you mint your NFT collection. These metadata templates are only provided
|
||||
# for your convenience.
|
||||
|
||||
metaDataDescription = '' # The description of your NFT that will be inserted into its meta data
|
||||
|
||||
# Utilities - DO NOT TOUCH:
|
||||
mac = 'Darwin' # Mac OS
|
||||
windows = 'Windows' # Windows
|
||||
|
|
Ładowanie…
Reference in New Issue