mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-14 09:38:05 +00:00
Compare commits
2 Commits
feat/cache
...
curve-node
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98d9b7df2f | ||
|
|
04d29497d5 |
20
nodes.py
20
nodes.py
@@ -2034,6 +2034,24 @@ class ImagePadForOutpaint:
|
|||||||
return (new_image, mask.unsqueeze(0))
|
return (new_image, mask.unsqueeze(0))
|
||||||
|
|
||||||
|
|
||||||
|
class CurveEditor:
|
||||||
|
@classmethod
|
||||||
|
def INPUT_TYPES(s):
|
||||||
|
return {
|
||||||
|
"required": {
|
||||||
|
"curve": ("CURVE", {"default": [[0, 0], [1, 1]]}),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
RETURN_TYPES = ("CURVE",)
|
||||||
|
RETURN_NAMES = ("curve",)
|
||||||
|
FUNCTION = "execute"
|
||||||
|
CATEGORY = "utils"
|
||||||
|
|
||||||
|
def execute(self, curve):
|
||||||
|
return (curve,)
|
||||||
|
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
NODE_CLASS_MAPPINGS = {
|
||||||
"KSampler": KSampler,
|
"KSampler": KSampler,
|
||||||
"CheckpointLoaderSimple": CheckpointLoaderSimple,
|
"CheckpointLoaderSimple": CheckpointLoaderSimple,
|
||||||
@@ -2102,6 +2120,7 @@ NODE_CLASS_MAPPINGS = {
|
|||||||
"ConditioningZeroOut": ConditioningZeroOut,
|
"ConditioningZeroOut": ConditioningZeroOut,
|
||||||
"ConditioningSetTimestepRange": ConditioningSetTimestepRange,
|
"ConditioningSetTimestepRange": ConditioningSetTimestepRange,
|
||||||
"LoraLoaderModelOnly": LoraLoaderModelOnly,
|
"LoraLoaderModelOnly": LoraLoaderModelOnly,
|
||||||
|
"CurveEditor": CurveEditor,
|
||||||
}
|
}
|
||||||
|
|
||||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||||
@@ -2170,6 +2189,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
|
|||||||
# _for_testing
|
# _for_testing
|
||||||
"VAEDecodeTiled": "VAE Decode (Tiled)",
|
"VAEDecodeTiled": "VAE Decode (Tiled)",
|
||||||
"VAEEncodeTiled": "VAE Encode (Tiled)",
|
"VAEEncodeTiled": "VAE Encode (Tiled)",
|
||||||
|
"CurveEditor": "Curve Editor",
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTENSION_WEB_DIRS = {}
|
EXTENSION_WEB_DIRS = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user