kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
added save path overriding
rodzic
fb8632e72a
commit
c2be2c9ed0
|
@ -636,6 +636,9 @@ def runAsHeadless():
|
|||
bpy.context.scene.my_tool.enableCustomFields = bool(pairs[18][1])
|
||||
bpy.context.scene.my_tool.customfieldsFile = pairs[19][1]
|
||||
|
||||
if args.save_path:
|
||||
bpy.context.scene.my_tool.save_path = save_path
|
||||
|
||||
#don't mind me, just copy-pasting code around...
|
||||
if args.operation == 'create-dna':
|
||||
nftName = bpy.context.scene.my_tool.nftName
|
||||
|
|
|
@ -36,4 +36,11 @@ def getPythonArgs():
|
|||
help="Choose which operation you want to perform"
|
||||
)
|
||||
|
||||
parser.add_argument("-s", "--save-path",
|
||||
dest="save_path",
|
||||
metavar='FOLDER',
|
||||
required=False,
|
||||
help="Overwrite the save path in the config file"
|
||||
)
|
||||
|
||||
return (parser.parse_args(argv), parser)
|
||||
|
|
Ładowanie…
Reference in New Issue