HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.18k stars 4.3k forks source link

I want to use layer name as the build image name #982

Open monarkdapp opened 2 years ago

monarkdapp commented 2 years ago

Hey everyone

I'm trying to either: A) make Hashlips generate images ordered by layer name without shuffle (say images in "layer1" folder goes like 1.png, 2.png and Hashlips starts from 1.png) therefore build filenames will be in the correct order (don't worry about the grow edition size, it'll be equal to to the amount of files in layer)

B) Simply use one specific layer's object name as the _editionCount (ie name of the build images and json)

Not a js savvy here so I struggled a lot playing around with the code.

${buildDir}/images/${_editionCount}.png,

If I try to put any other variable on this line (at least what looks to me like a variable) it fails.

I'd appreciate if someone can directly point at the line and what needs to be changed

bolshoytoster commented 2 years ago

@xkrunk you could try looking at thePeanutGalleryandCo's repo or nftchef's repo.

monarkdapp commented 2 years ago

@xkrunk you could try looking at thePeanutGalleryandCo's repo or nftchef's repo.

@bolshoytoster thanks. I could find this nft_details.js under thePeanutGalleryandCo's repo but I'm not sure if I'm looking at the correct thing. It only helps with setting static names but doesn't seem to give options such as using another variable (ie layer name as the name prefix)

Can you tell me if I'm looking at the right spot for what I want?