Excluding layers in the combination
bettyboomy opened this issue · 3 comments
My NFT project has 11 layers, of which 3 are background layers, these 3 layers are part of a mandatory structure, I have used layer dependency settings and this is great! :D
I don't know if it's possible, but I would like these 3 background layers not to count in the combination layers, I mean, to generate my collection of 1,000 unique NFTs I want only the other 8 layers to be taken into account, this would be the structure:
Layer 1 (mandatory structure, does not count for randomizing the mix)
Layer 2 (mandatory structure, does not count for randomizing the mix)
Layer 3 (mandatory structure, does not count for randomizing the mix)
Layer 4 (Count for randomizing the mix)
Layer 5 (Count for randomizing the mix)
Layer 6 (Count for randomizing the mix)
Layer 7 (Count for randomizing the mix)
Layer 8 (Count for randomizing the mix)
Layer 9 (Count for randomizing the mix)
Layer 10 (Count for randomizing the mix)
Layer 11 (Count for randomizing the mix)
So I would have a collection where the 1,000 NFTs would be unique thanks to the combination of the last 8 layers and, in addition, each of those 1,000 NFTs would have 3 more layers added forcibly.
The 8 layers make up a character and the 3 layers add background to that character.
Thanks in advance, your work are amazing!
@bettyboomy Hi! Welcome to the repo!
How many different layer items are in your mandatory layers? If it is 1 item only in each of them, then it shouldn't be a problem.
What is the reasoning behind not wanting these 3 layers part of the randomizer? At the moment, something like this is not possible, would need some custom changes.
@bettyboomy apologies, yes, this is possible from the core codebase. Try adding this code snippet to your mandatory layer's object and it will be skipped in the rarity checks according to the documentation.
{ options: { bypassDNA: true} }
Please see example below where it is used in the Background layer. You can simply add this to each of your 3 layers.
const layerConfigurations = [
{
growEditionSizeTo: 5,
layersOrder: [
{ name: "Background" , {
options: {
bypassDNA: true
}
}},
{ name: "Eyeball" },
{ name: "Eye color"},
{ name: "Iris" },
{ name: "Shine" }
]
}
];
Yes! It works :D Thanks so much!