This commit is contained in:
Umikaze-job
2023-11-18 23:26:35 +09:00
parent 04a3168b4a
commit 5f16df2dd5
5 changed files with 6 additions and 13 deletions
+4
View File
@@ -1 +1,5 @@
## select_folder_path_easy
# Easier specification of output folder
![image01](/images/image01.png)
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

+2 -10
View File
@@ -3,16 +3,8 @@ import json
import os
class SelectFolderPathEasy6321:
day_format = None
def __init__(self):
# 現在のスクリプトが存在するディレクトリのパス
current_directory = os.path.dirname(os.path.realpath(__file__))
# ひとつ上のディレクトリのパスを取得
parent_directory = os.path.abspath(os.path.join(current_directory, os.pardir))
with open(os.path.join(parent_directory, 'setting.json'),"r") as f:
json_dict = json.load(f)
self.day_format = json_dict["day_format"]
pass
@classmethod
def INPUT_TYPES(self):
@@ -28,7 +20,7 @@ class SelectFolderPathEasy6321:
}),
"time_format":("STRING",{
"multiline": False, #True if you want the field to look like the one on the ClipTextEncode node
"default": self.day_format
"default": r"%Y-%m-%d"
})
}
}
-3
View File
@@ -1,3 +0,0 @@
{
"day_format":"%Y-%m-%d"
}