Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ee78b0e
resetNameIndex fix
bruceballad Oct 24, 2021
86fa0c0
Improvements
bruceballad Oct 24, 2021
89b17cf
Improvements part-2
bruceballad Oct 24, 2021
8a78b3b
New removeMetadataContent utility
bruceballad Oct 24, 2021
649e158
Merge branch 'nftchef:nested-folder-structure' into nested-folders-im…
bruceballad Oct 25, 2021
1a9fc9e
Merge branch 'nftchef:nested-folder-structure' into nested-folders-im…
bruceballad Oct 28, 2021
17fbecf
Delete 3shadow?blend=multiply&opacity=50.png
bruceballad Oct 29, 2021
f4656f6
Changes based on the requests from nftchef
bruceballad Oct 29, 2021
d912608
Merge branch 'nested-folder-structure' into nested-folders-improvemen…
bruceballad Nov 3, 2021
c9d4fa9
small comment clean up.
bruceballad Nov 3, 2021
d509238
Merge branch 'nftchef:nested-folder-structure' into nested-folders-im…
bruceballad Nov 6, 2021
978c1b7
Merge branch 'nftchef:nested-folder-structure' into nested-folders-im…
bruceballad Nov 10, 2021
fc45eb1
Merge branch 'nftchef:nested-folder-structure' into nested-folders-im…
bruceballad Nov 11, 2021
70b9cd4
Fix for using createPreviewCollage.js with JPEG outputs
bruceballad Nov 16, 2021
a4c6c8d
fix _offset console message + edition reports with name
bruceballad Nov 16, 2021
a38859d
Fix for using updateBaseUri.js with JPEG outputs
bruceballad Nov 16, 2021
064e4b7
adds bypass DNA
bruceballad Nov 21, 2021
328829c
Merge branch 'nested-folder-structure' into nested-folders-improvemen…
bruceballad Nov 21, 2021
3fc7161
Merge branch 'nested-folder-structure' into nested-folders-improvemen…
bruceballad Jan 2, 2022
3d139dc
Small Update
bruceballad Jan 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,19 @@ sublayerOptions: {

# Metadata Name and Number

Name + Number prefix and reset for configuration sets
Name + Number prefix, suffix, and counter reset for configuration sets

If you are using the generator with multiple `layerConfiguration` objects to generate different species/genders/types, it is possible to add a name prefix and a reset counter for the name, so the token names start at `1` for each type.
If you are using the generator with multiple `layerConfiguration` objects to generate different species/genders/types, it is possible to add a name prefix and a suffix, as well as a reset counter for the names, so the token names start at `1` for each type.

for example, if you are creating multiple animals, and each animal should start with `Animal #1`, but the token numbers should increment as normal, you can use the following `namePrefix` and `resetNameIndex` properties to acheive this.

```js
growEditionSizeTo: 10,
namePrefix: "Lion",
resetNameIndex: true, // this will start the Lion count at #1 instead of #6
nameSuffix: "Set-A", // add a suffix after the number. if resetNameIndex is on too, put the reseted counter after the suffix
descriptionOverwrite: "Unique Description For Layer Set-A which {name} is a member of.", // LayerConfig spesific descriptions. Use {name} to embed asset names.

layersOrder: [
{ name: "Background" },
{ name: "Eyeball" },
Expand All @@ -234,6 +237,14 @@ for example, if you are creating multiple animals, and each animal should start

You may choose to omit the `resetNameIndex` or set it to false if you would instead like each layer set to use the token (\_edition) number in the name–it does this by default.


If you want each config set to have a sub group name other than the prefix, you can add it with `nameSuffix` property. And form a name like `Animal #5 Monkey`.
If you use `resetNameIndex: true` propert together with `nameSuffix` property, you the reset counter will be added after the suffix name, and form a name like `Animal #5 - Monkey #3`.

You can also set different descriptions for different layer configuration sets by using `descriptionOverwrite` property. Write a string that will overwrite the default description text only for the current layer set.

If you want you can embed the generated asset names into the description texts by writing `{name}` in the string and make each description unique. This method works for the default description text too. You can form unique descriptions such as; `Unique Description For Layer Set-A which "Animal #5 - Monkey #3" is a member of.`

# Chance of "NONE" or skipping a trait

If you would like any given layer or sublayer to have a chance at _rolling_ `NONE`, you can do this by adding a blank PNG to the folder, and giving it the name of `NONE` + the weight you would like to use for it's chance of being chosen–identical to any other layer.
Expand Down Expand Up @@ -406,6 +417,21 @@ If you would like to print additional logging, use the `-d` flag
node utils/removeTrait.js "Background" -d
```

# Remove Metadata Content

If you need to remove an unwanted top-level data from json files such as `dna` or `external_url` you can use the `removeMetadataContent` util command.
Note that, this utility is a bit different than `removeTrait` util, as you can delete a necessary line such as `name` or `image` too. So, use this with caution.

Use this util by running a command like the following;
```
node utils/removeMetadataContent.js "external_url"
```

If you would like to print additional logging, use the `-d` flag
```
node utils/removeMetadataContent.js "external_url" -d
```

# Randomly Insert Rare items - Replace Util

If you would like to manually add 'hand drawn' or unique versions into the pool of generated items, this utility takes a source folder (of your new artwork) and inserts it into the `build` directory, assigning them to random id's.
Expand Down
Loading