Merge pull request #92 from TheBrochacho/main

Added another optional argument
pull/102/head
Torrin Leonard 2022-04-19 22:15:39 -04:00 zatwierdzone przez GitHub
commit 2b0856b90b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 27 dodań i 4 usunięć

Wyświetl plik

@ -752,7 +752,7 @@ There are two mandatory arguments that you need to run this script from the term
This argument tells Blend_My_NFTs which operation you want to perform.
`--operation` or `-o` with one of the following three options afterwards:
`--operation` with one of the following three options afterwards:
```
create-dna
generate-nfts
@ -760,11 +760,23 @@ There are two mandatory arguments that you need to run this script from the term
```
There are also additional optional arguments that you can use:
- Change save location
- Change Save Location
This argument takes priority over the save path indicated in `config.cfg`.
`--save-path` or `-s`
`--save-path`
- Change Batch Number
This argument takes priority over the batch number specified in `config.cfg`.
`--batch-number`
- Use Batch Data in a non standard location
Use batch data from a separate folder rather than the folder Blend My NFTs uses by default.
`--batch-data`
You can also view this information from your terminal/command line by running:

Wyświetl plik

@ -191,6 +191,9 @@ def runAsHeadless():
Blend_My_NFTs_Output, batch_json_save_path, nftBatch_save_path = make_directories(save_path)
if args.batch_data_path:
batch_json_save_path = args.batch_data_path;
enableImages = settings.imageBool
imageFileFormat = settings.imageEnum

Wyświetl plik

@ -43,10 +43,18 @@ def getPythonArgs():
help="Overwrite the save path in the config file"
)
parser.add_argument("--batch",
parser.add_argument("--batch-number",
dest="batch_number",
type=int,
required=False,
help="Overwrite the batch number in the config file"
)
parser.add_argument("--batch-data",
dest="batch_data_path",
metavar='FOLDER',
required=False,
help="Use pre-existing batch data for rendering"
)
return (parser.parse_args(argv), parser)