create-and-mint-nft-collection icon indicating copy to clipboard operation
create-and-mint-nft-collection copied to clipboard

[QUESTION] How to create multiple template types in a single collection?

Open Artyana opened this issue 2 years ago • 1 comments

Summary

Hello!

The template provides a simple way to match layers you’d like to see together or turn off certain layers for some portion of your tokens. How to create multiple template types in a single collection?

Thank you.

Artyana avatar Aug 14 '22 14:08 Artyana

The layerconfigurations in the config.js is an array. You can check the original codebase of Hashlips on how to use multiple configuration sets to build an entire collection.

Basically something like the below would use 3 different config sets and make a total of 10 nfts.

const layerConfigurations = [ { growEditionSizeTo: 3, layersOrder: [ { name: "Background" }, { name: "Eyeball" }, { name: "Eye color" }, { name: "Iris" }, { name: "Shine" }, { name: "Bottom lid" }, { name: "Top lid" } ] }, { growEditionSizeTo: 5, layersOrder: [ { name: "Background" }, { name: "Eyeball" }, { name: "Eye color" }, { name: "Iris" }, { name: "Shine" }, { name: "Bottom lid" } ] }, { growEditionSizeTo: 10, layersOrder: [ { name: "Background" }, { name: "Eye color" }, { name: "Iris" }, { name: "Shine" }, { name: "Top lid" }, ] } ];

thepeanutgalleryandco avatar Aug 17 '22 19:08 thepeanutgalleryandco