Jon-Becker / nft-generator-py

This tool allows users to generate sets of unique images and metadata using weighted layer collections.
MIT License
301 stars 127 forks source link

Feature Request: #49

Closed sriharsh1104 closed 1 year ago

sriharsh1104 commented 1 year ago
          Feature Request:

When deploying the NFT images and metadata to IPFS, it is necessary to first upload the images (and get a unique CID). Then I need to update the JSON files to point at this CID. I can not create the CID in advance of running the generative script (index.py) as I do not have the CID until I upload the images.

Could a script be added to run after the index.py & once I get the CID to go through all files in the metadata folder and update the baseURI to represent the IPFS CID? (Or regenerate them based on all-object.json?) Obviously the data needs to maintain the connection to the image. is these feature possible if yes than can you share a video reference or doc for the same .

Originally posted by @sriharsh1104 in https://github.com/Jon-Becker/nft-generator-py/issues/7#issuecomment-1477580989

Jon-Becker commented 1 year ago

Does this not solve this issue?

https://github.com/Jon-Becker/nft-generator-py/blob/main/update_cid.py