Files
avatechai-avatar-graph-comfyui/common/vector3d.py
T
2023-09-04 18:16:25 +08:00

46 lines
1.0 KiB
Python

class VECTOR3D:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"x": ("INT", {
"default": 0,
"min": -1024,
"max": 1024,
"step": 1,
"display": "number"
}),
"y": ("INT", {
"default": 0,
"min": -1024,
"max": 1024,
"step": 1,
"display": "number"
}),
"z": ("INT", {
"default": 0,
"min": -1024,
"max": 1024,
"step": 1,
"display": "number"
}),
},
}
RETURN_TYPES = ("VECTOR3D",)
FUNCTION = "run"
CATEGORY = "utils"
def run(self, x, y, z):
return ([x, y, z],)
NODE_CLASS_MAPPINGS = {
"VECTOR3D": VECTOR3D
}
NODE_DISPLAY_NAME_MAPPINGS = {
"VECTOR3D": "Vector 3D"
}