Adds a feature to specify incompatible traits.#1559
Adds a feature to specify incompatible traits.#1559two-pack wants to merge 1 commit intoHashLips:mainfrom
Conversation
|
How do you format multiple exclusions from the same category? For example Eye Color Purple is not compatible with any of the traits in Bottom Lid. |
|
There is no way to specify them all together, so all combinations must be specified. |
When I define more than one exclusion it doesn't exclude either option and both combinations end up in the collection. If I define one it excludes it as expected. I think I just have the format wrong. Can you confirm? @two-pack Working |
|
@1hibijibi1 const layerConfigurations = [
{
growEditionSizeTo: 50,
layersOrder: [
{ name: "Background" },
{ name: "Eyeball" },
{ name: "Eye color" },
{ name: "Iris" },
{ name: "Shine" },
{ name: "Bottom lid" },
{ name: "Top lid" },
], incompatibleTraits: [
{ "Eyeball": "White", "Eye color": "Cyan" },
{ "Eyeball": "White", "Eye color": "Green"},
{ "Eyeball": "White", "Eye color": "Pink"},
{ "Eyeball": "White", "Eye color": "Purple"},
{ "Eyeball": "White", "Eye color": "Red"},
],
},
]; |
|
@two-pack thanks, I copied this over and reran doing tests along the way. I believe my error came from having a file missing from /layers folder, it was the first name specified in the incompatible traits list. Working now. Thanks for the response. |
|
Why isn't this merged yet? I would like to use this feature. Can someone please explain if it still has any issues? |
Description
The generated image may be corrupted because some traits combinations in layers do not match.
This feature allows you to specify combinations to exclude in config.js to eliminate this problem.
An example would be to specify the following:
In the first example above, combinations containing Eye color is Red and Eyeball is Red are excluded.
Related issues and PR
#1319, #1522, #585