Files
Derfuu-Derfuu_ComfyUI_Modde…/__init__.py
T
Derfuu cc43376402 Updated to last ComfyUI version (on 26.03.23) to use conversion between fields and connection points
- Fixed types issues
- Added:
 - Int2Tuple node
- Deleted due to last ComfyUI update which made them nearly useless now:
 - ConditioningSetAreaEXT (modded)
 - EmptyLatentImage (modded)
- NOT Deleted, but now might be useless (IMHO):
 - LatentComposite (modded)
 - ConditioningSetArea (modded)
- TUPLES moved to their own subfolder in UI
- ALL custom nodes with FLOAT, INT, STRING values now can use their own fields as inputs (use original conversion to points to connect)
- Refactored nearly all code... again
2023-03-26 20:20:41 +03:00

66 lines
2.6 KiB
Python

import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Custom.Types as TypeNodes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Debug.Debug as DebugNodes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Functions.Converters as ConvNodes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Functions.GetSizes as GetSizes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Functions.Random as RandNodes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Functions.Tuples as TupleNodes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Math.SimpleMath as SMath
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Math.Trigonometry as TMath
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Modded.Images as ImageNodes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Modded.Latents as LatentNodes
import custom_nodes.Derfuu_ComfyUI_ModdedNodes.Nodes.Modded.Condotionig as CondNodes
NODE_CLASS_MAPPINGS = {
"FloatNode_DF": TypeNodes.FloatNode,
"IntegerNode_DF": TypeNodes.IntegerNode,
"StringNode_DF": TypeNodes.StringNode,
"TupleNode_DF": TypeNodes.TupleNode,
"MultilineStringNode_DF": TypeNodes.MultilineStringNode, # IDK where to use this... yet
"FloatDebugPrint_DF": DebugNodes.DebugNodeFloat,
"IntDebugPrint_DF": DebugNodes.DebugNodeInt,
"TupleDebugPrint_DF": DebugNodes.DebugNodeTuple,
"StringDebugPrint_DF": DebugNodes.DebugNodeString,
"RandomFloat_DF": RandNodes.RandomValue,
"Float2Tuple_DF": TupleNodes.Float2Tuple,
"Int2Tuple_DF": TupleNodes.Int2Tuple,
"Tuple2Float_DF": TupleNodes.Tuple2Float,
"Tuple2Int_DF": TupleNodes.Tuple2Int,
"FlipTuple_DF": TupleNodes.FlipTuple,
"Int2Float_DF": ConvNodes.Int2Float,
"CeilNode_DF": ConvNodes.CeilNode,
"FloorNode_DF": ConvNodes.FloorNode,
"ABSNode_DF": ConvNodes.ABSNode,
"GetLatentSize_DF": GetSizes.GetLatentSize,
"GetImageSize_DF": GetSizes.GetImageSize,
"SumNode_DF": SMath.SumNode,
"SubtractNode_DF": SMath.SubtractNode,
"MultiplyNode_DF": SMath.MultiplyNode,
"DivideNode_DF": SMath.DivideNode,
"PowNode_DF": SMath.PowNode,
"SqrtNode_DF": SMath.SquareRootNode,
"SinNode_DF": TMath.SinNode,
"CosNode_DF": TMath.CosNode,
"TanNode_DF": TMath.tgNode,
# "EmptyLatentImage_DF": LatentNodes.EmptyLatentImage,
"LatentScale_Ratio_DF": LatentNodes.LatentScale_Ratio,
"LatentScale_Side_DF": LatentNodes.LatentScale_Side,
"LatentComposite_DF": LatentNodes.LatentComposite,
"ImageScale_Ratio_DF": ImageNodes.ImageScale_Ratio,
"ImageScale_Side_DF": ImageNodes.ImageScale_Side,
"ConditioningSetArea_DF": CondNodes.ConditioningSetArea_MOD,
}