Refactoring config.py

Adding metaDataType and metaDataDescription to config.py
Changed location of error handling message
pull/26/head
Torrin Leonard 2021-11-21 12:42:02 -05:00
rodzic e583146df3
commit b1e84fa726
1 zmienionych plików z 15 dodań i 4 usunięć

Wyświetl plik

@ -9,6 +9,16 @@ 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''
@ -36,10 +46,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
# error handling #
if objectFormatExport not in ['fbx', 'glb', 'obj', 'x3d'] and enable3DModels:
raise ValueError("Output format in `objectFormatExport` can only be 'fbx', 'glb', 'obj', 'x3d'.")
### Select colour or material.###
# Object generation options:
@ -94,6 +100,11 @@ modelAssetPath = save_path + slash + "3D_Model_Input" # The input path for 3D m
model_save_path = save_path + slash + "3D_Model_Output" # The output path for 3D models generated by Model_Generator.py
model_Script_Ignore_Path = modelAssetPath + slash + "Script_Ignore_Folder" # The path to the Script_Ignore_Folder for 3D models
# error handling #
if objectFormatExport not in ['fbx', 'glb', 'obj', 'x3d'] and enable3DModels:
raise ValueError("Output format in `objectFormatExport` can only be 'fbx', 'glb', 'obj', 'x3d'.")
# EXPERIMENTAL FEATURES:
# Enables Rarity_Sorter to weigh NFT DNA attributes and variants: