codeSTACKr / minter-dapp

MIT License
2.04k stars 3.42k forks source link

[Bug]: How to generate collection if we have multiple character per image (nested layers)? #71

Open DevPratyush opened 2 years ago

DevPratyush commented 2 years ago

Version

General Question

What happened?

@I wanted to create a collection where we have 5 characters per image(. We have traits for each character. Let me explain the structure of the folder (It has nested subfolders).

I-Heroes |--Hero 1 I----Hairs l------Blackhair.png l------Blondhair.png l------Brownhair.png I----Cloth l------Blackcloth.png l------Whitecloth.png l------YellowCloth.png I----Skin l------Blackskin.png l------Brownskin.png l------Whiteskin.png

|--Hero 2 I----Hairs l------Blackhair.png l------Blondhair.png l------Brownhair.png I----Cloth l------Blackcloth.png l------Whitecloth.png l------YellowCloth.png I----Skin l------Blackskin.png l------Brownskin.png l------Whiteskin.png

|--Hero 3 I----Hairs l------Blackhair.png l------Blondhair.png l------Brownhair.png I----Cloth l------Blackcloth.png l------Whitecloth.png l------YellowCloth.png I----Skin l------Blackskin.png l------Brownskin.png l------Whiteskin.png

|--Hero 4 I----Hairs l------Blackhair.png l------Blondhair.png l------Brownhair.png I----Cloth l------Blackcloth.png l------Whitecloth.png l------YellowCloth.png I----Skin l------Blackskin.png l------Brownskin.png l------Whiteskin.png

|--Hero 5 I----Hairs l------Blackhair.png l------Blondhair.png l------Brownhair.png I----Cloth l------Blackcloth.png l------Whitecloth.png l------YellowCloth.png I----Skin l------Blackskin.png l------Brownskin.png l------Whiteskin.png

I-Background I-Birds

Please help me to figure it out how can I use this generator for creating such type of collection where we have multiple character in each image. Here we have sublayers. and also how can I get the json file that suits for this case.

What have you tried?

I tried to check it with different ways to work on it through this generator but couldn't get any clue.

Relevant log output

No response

Protect your information

sainitin1012 commented 2 years ago

layersOrder: [ {name:heros5}, { name: "hairs" }, {name:"cloth"}, {name:"skin"},

  ],

},
like this u can add any number of layers