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 690 forks source link

How do I change the names to be "Crypto Thing #1" but the number aligns with the copy it is #42

Open thecryptobirdie opened 3 years ago

Devolvera commented 3 years ago

In V3/V4, if you go to index.js, find the addMetadata constant and edit "name" to something like this (see bold):

const addMetadata = (_dna, _edition) => { let dateTime = Date.now(); let tempMetadata = { dna: _dna.join(""), name: Crypto Thing #${_edition}, description: description, image: ${baseImageUri}/${_edition}.png, edition: _edition, date: dateTime, attributes: attributesList, }; metadataList.push(tempMetadata); attributesList = []; };

thecryptobirdie commented 3 years ago

Thanks for the response. How exactly do i access this text? I cant find it on the code. sorry im totally new to code lol

Devolvera commented 3 years ago

@thecryptobirdie which branch version are you on?

you can usually tell by looking at your root folder "generative-art-opensource-3"

should give you a version number or "main"

thecryptobirdie commented 3 years ago

nevermind. i found out how to change it. thank you so much!!

thecryptobirdie commented 3 years ago

one more question though: {"name":"LAVENDER"},{"name":"LIGHT BLUE"},{"name":"MAROON EYES"},{"name":"ORANGE BEAK"},{"name":"HEADPHONES"},{"name":"NONE"}]} Im making bird nft's and im wondering if i upload them to Opensea from here, will they all fall under a "name" category? how to I make it individual cateories like eyes: Maroon eyes or beak: Orange beak

thecryptobirdie commented 3 years ago

or in general, what do most creators do? what would you recommend i do?

Devolvera commented 3 years ago

so you're wanting traits, correct? I suggest downloading the V3 branch as the traits are already in the config.js.

Hashlips (the creator of this project) has a few tutorials on adding traits for the metadata/opensea

thecryptobirdie commented 3 years ago

it may be alright. so if it says {"name":"LAVENDER"},{"name":"LIGHT BLUE"},{"name":"MAROON EYES"},{"name":"ORANGE BEAK"},{"name":"HEADPHONES"},{"name":"NONE"}]}, in opensea the "name" wouldnt show? it would say Attributes: ORANGE BEAK and Attributes: HEADPHONES

Devolvera commented 3 years ago

So in theory you should have something like this. This would be the BACKGROUND attribute, and then I have several different backgrounds with different names. so in Opensea, it would show 'Background: Blue" or something. It would be the same with other attributes like eyes and beak.

name: "Background", elements: [ { id: 0, name: "Blue", path: ${dir}/Background/bg_1.png, weight: 60, }, { id: 1, name: "Yellow", path: ${dir}/Background/bg_2.png, weight: 20, }, { id: 2, name: "Green", path: ${dir}/Background/bg_3.png, weight: 20, },

thecryptobirdie commented 3 years ago
Screen Shot 2021-09-07 at 3 53 16 PM

if I decided to stick with just one overarching thing, looking at my lines of code that i sent, the blue would say Attributes and the black would say ORANGE BEAK and everything else?

thecryptobirdie commented 3 years ago

but if I were to go with what you said, where would I paste it, and what would i have to change/enter for each attribute?

EvilShaggz commented 3 years ago

There is a trait type solution in #19 i believe ponda fixed it

thecryptobirdie commented 3 years ago

Perfect. thank you!!