Rarity data: Show percentage of each attribute's occurrence in collection#149
Rarity data: Show percentage of each attribute's occurrence in collection#149jjohnson5253 wants to merge 5 commits intoHashLips:mainfrom
Conversation
|
Amazing! Is there a way to impliment this into the Hashlips/Generative-Art-Engine code? |
|
You mean HashLips/hashlips_art_engine? Yea I made a pull request there too and it’s currently merged in with main. See the bottom of the readme on that repo |
|
Exactly what I meant, great work! Thanks! |
|
Thanks mate, such a great feature! If I generate the metadata.json and run the util it works, however if I rerun index.js to rebuild my images and jsons (including metadata.json) it returns the previous data, not the updated data. Have you encountered this? |
|
@DanChapp Hmm, I don't see that problem for me. Do you mean |
This pull request adds a rarityData.js file that prints out the percentages of each attribute's occurrence throughout the collection. I added the layer name (calling it trait_type) to the metadata to make things easier. This seems to be typical of candy machines like metaplex anyway.
Example output: