nftchef / art-engine

An advanced fork of the HashLips Art Engine with additional features to generate complex art from provided layers using the familiar Hashlips setup.
MIT License
427 stars 203 forks source link

Randomization of multiple layer configurations? #300

Closed dakky221 closed 1 year ago

dakky221 commented 1 year ago

Currently if we create/use multiple layer configurations, it will grow editions as in config file ie. making tokens number 1 to X same trait, then next 100 tokens with another trait... what would be ideal is to be able to randomize that so it doesn't sequentially grows the collection....

For example

const layerConfigurations = [ { growEditionSizeTo: 20, namePrefix: "SomeName1", // Use to add a name to Metadata name: layersOrder: [ { name: "background" , options: { bypassDNA: true } }, { name: "base1" }, { name: "trait1" }, ], }, { growEditionSizeTo: 40, namePrefix: "SomeName2", // Use to add a name to Metadata name: layersOrder: [ { name: "background" , options: { bypassDNA: true } }, { name: "base2" }, { name: "trait2" }, ], },

This will make tokens number 1-20 exactly "SomeName1" and tokens 21-40 "SomeName2" ... while we would like to have for example SomeName1 as token 1, then SomeName2 for tokens 2 and 3, then again SomeName1 for token 4 etc.

Hopefully you understand the question. Thanks

dakky221 commented 1 year ago

Ok, I've spent like 3 hours looking at config and overseen

const shuffleLayerConfigurations = true;