HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 695 forks source link

how can i make JSON file for each PNG? #63

Closed cryptouzi closed 2 years ago

cryptouzi commented 2 years ago

how can i change it, to where i can make a JSON file along with a PNG for each NFT?

Ponda1 commented 2 years ago

Download the v3 branch. In the index file there are two instances of code which mention saveMetadataSingleFile. Copy and paste both pieces of code into the index file of whichever branch you are using.

cryptouzi commented 2 years ago

tried it but it stops after 1 creation

Ponda1 commented 2 years ago

I have no idea then, I did exactly the same thing and it worked for me. Are you sure you did it correctly? I would post the code here but it would be too long and im on my phone rn :/

cryptouzi commented 2 years ago

Yes i copied the 2 codes which mention saveMetaDataSingleFile. I thought it was going to work but it stoped after 1 JSON and 1 PNG

cryptouzi commented 2 years ago

I finally got it to work. Now JSON is being made with png BUTTTT json file is showing "name, edition, etc." but now showing the actual backgrounds details

cryptouzi commented 2 years ago

Sorry simple fix lol forgot to add "attributesList" thanks for all your help! I could not have done it myself

Ponda1 commented 2 years ago

Glad to hear that! You can close this issue then.

bladeninja888 commented 2 years ago

still not able to add the second line of code please help:

https://github.com/HashLips/generative-art-opensource/issues/91

bladeninja888 commented 2 years ago

attributesList

can you explain this step of code bro and where to put attributelist?

bladeninja888 commented 2 years ago

Sorry simple fix lol forgot to add "attributesList" thanks for all your help! I could not have done it myself

can you explain more please? I'm stuck here,

Every Json file I get only has name but no traits: #98

gcod commented 2 years ago

This works with current main index.zip