Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add weight to layers? #6

Open
kabaluyot opened this issue Jun 25, 2022 · 2 comments
Open

How to add weight to layers? #6

kabaluyot opened this issue Jun 25, 2022 · 2 comments

Comments

@kabaluyot
Copy link

The weights for traits is clearly discussed in the docs but I can't find how to add weights to layers ..

@alephao
Copy link
Owner

alephao commented Jun 25, 2022

Hi @kabaluyot, I'm not sure what you mean by weights to layers, is it about having/not having a layer?

@kabaluyot
Copy link
Author

Hi @alephao , the use case looks like this:

E.g I have a 3 layers NFT, Layer1 (Background), Layer2 (Eyes), Layer3 (Nose)
Now for example each layers have at least 3 traits, and it will look like this:

Layer1
5-SuperRare.png
100-Common.png
100-Common.png

Layer2
5-SuperRare.png
100-Common.png
100-Common.png

Layer3
5-SuperRare.png
100-Common.png
100-Common.png

Now using nftool, Layers 1,2,3 in terms of rarity looks equal. Requirement is to let Layer1 have significant weight compared to the rest. So if 2 NFTs are compared for example, with the first having a super rare Layer2 (and the rest are common) and second having a super rare Layer1 (and the rest are common), the second one should be the rarest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants