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

Conditional layers #1127

Open ronauSeattle opened 2 years ago

ronauSeattle commented 2 years ago

Hello, I have some layers that I want to include only if certain other layers are selected.

For example, if a creature's head is a fish, the tail has to be a fish tail and not a lizard tail. Also, there are 4 different colors of fish heads, fish tails, lizard heads, lizard tail. And if the creature has wings, it can have wing accessories; if it has tails, it can have tail accessories. This is just a simple example to illustrate the problem--if I follow the method in the documentation (creating groups), my actual scenario would have 64 groups or so. Are there elegant ways to do this while keeping the rarity function working?

Thanks!

thepeanutgalleryandco commented 2 years ago

I have implemented filters on my repo - https://github.com/thepeanutgalleryandco/create-and-mint-nft-collection