ADD 增加视频帧位计算、字符串判空节点
PERF 重构项目结构
This commit is contained in:
21
nodes/string_empty_judgement.py
Normal file
21
nodes/string_empty_judgement.py
Normal file
@@ -0,0 +1,21 @@
|
||||
class StringEmptyJudgement:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"input": ("STRING", {"forceInput": True}),
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
RETURN_NAMES = ("是否为空", )
|
||||
|
||||
FUNCTION = "compute"
|
||||
|
||||
CATEGORY = "不忘科技-自定义节点🚩"
|
||||
|
||||
def compute(self, input):
|
||||
if len(input) == 0:
|
||||
return (True, )
|
||||
else:
|
||||
return (False, )
|
||||
Reference in New Issue
Block a user