Open jjohnson5253 opened 2 years ago
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 rarityData.js
will use metadata from your initial index.js
run? If I rerun index.js and then rarityData.js
, the rarity data gets updated. rarityData.js
reads in from ./output/_metadata.json
so make sure that file is getting overwritten each time you run index.js
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: