Floyo
Floyo
Workflows
API
Pricing
Floyo
Floyo
Workflows
API
Pricing

ComfyMath

Created by evanspearman

https://github.com/evanspearman/ComfyMath

197

Last updated 2025-03-08

Last updated

2025-03-08

Run hundreds of ComfyUI nodes and workflows in your browser.

ComfyUI and My Files on Floyo

Provides a set of mathematical nodes designed for integration with ComfyUI, enhancing the functionality of the platform for users requiring advanced computational capabilities. This tool enables seamless execution of various mathematical operations, expanding the creative possibilities within the ComfyUI environment.

  • Offers nodes for Boolean logic operations, allowing for complex decision-making processes in workflows.
  • Supports both integer and floating-point arithmetic, catering to a variety of numerical calculations.
  • Includes vector arithmetic for Vec2, Vec3, and Vec4, facilitating advanced manipulation of spatial data.

Context

ComfyMath is an extension that introduces mathematical nodes to the ComfyUI framework, aimed at users seeking to perform complex calculations and logic operations within their projects. Its primary purpose is to enhance the computational capabilities of ComfyUI, making it a more powerful tool for artists and developers alike.

Key Features & Benefits

The tool provides essential nodes for Boolean logic, enabling users to implement conditional operations and decision-making in their workflows. It also includes nodes for both integer and floating-point arithmetic, allowing for precise mathematical calculations that are crucial for generating accurate outputs. Additionally, the inclusion of vector arithmetic nodes for different dimensions (Vec2, Vec3, Vec4) supports advanced manipulation of graphics and animations, which is vital for users working with 2D and 3D data.

Advanced Functionalities

ComfyMath's advanced functionalities include the ability to perform complex mathematical functions and operations on vectors, such as dot products and cross products, which are essential for 3D graphics and physics calculations. These capabilities allow users to create more dynamic and responsive designs by leveraging mathematical principles directly within their ComfyUI projects.

Practical Benefits

By incorporating ComfyMath into their workflows, users can significantly improve their control over mathematical processes, leading to higher quality outputs and increased efficiency. The ability to execute a wide range of mathematical functions directly within ComfyUI streamlines the creative process, allowing for more complex and nuanced designs without the need for external tools.

Credits/Acknowledgments

This extension was developed by Evans Pearman and is available under an open-source license, encouraging collaboration and further development within the community.

Inner Nodes

CM_BoolBinaryOperation
CM_BoolToInt
CM_BoolUnaryOperation
CM_BreakoutVec2
CM_BreakoutVec3
CM_BreakoutVec4
CM_ComposeVec2
CM_ComposeVec3
CM_ComposeVec4
CM_FloatBinaryCondition
CM_FloatBinaryOperation
CM_FloatToInt
CM_FloatToNumber
CM_FloatUnaryCondition
CM_FloatUnaryOperation
CM_IntBinaryCondition
CM_IntBinaryOperation
CM_IntToBool
CM_IntToFloat
CM_IntToNumber
CM_IntUnaryCondition
CM_IntUnaryOperation
CM_NearestSDXLExtendedResolution
CM_NearestSDXLResolution
CM_NumberBinaryCondition
CM_NumberBinaryOperation
CM_NumberToFloat
CM_NumberToInt
CM_NumberUnaryCondition
CM_NumberUnaryOperation
CM_SDXLExtendedResolution
CM_SDXLResolution
CM_Vec2BinaryCondition
CM_Vec2BinaryOperation
CM_Vec2ScalarOperation
CM_Vec2ToScalarBinaryOperation
CM_Vec2ToScalarUnaryOperation
CM_Vec2UnaryCondition
CM_Vec2UnaryOperation
CM_Vec3BinaryCondition
CM_Vec3BinaryOperation
CM_Vec3ScalarOperation
CM_Vec3ToScalarBinaryOperation
CM_Vec3ToScalarUnaryOperation
CM_Vec3UnaryCondition
CM_Vec3UnaryOperation
CM_Vec4BinaryCondition
CM_Vec4BinaryOperation
CM_Vec4ScalarOperation
CM_Vec4ToScalarBinaryOperation
CM_Vec4ToScalarUnaryOperation
CM_Vec4UnaryCondition
CM_Vec4UnaryOperation

Run workflows with this node

Community workflows using ComfyMath.

Created by evanspearman

Inner Nodes

CM_BoolBinaryOperation

CM_BoolToInt

CM_BoolUnaryOperation

CM_BreakoutVec2

CM_BreakoutVec3

CM_BreakoutVec4

CM_ComposeVec2

CM_ComposeVec3

CM_ComposeVec4

CM_FloatBinaryCondition

CM_FloatBinaryOperation

CM_FloatToInt

CM_FloatToNumber

CM_FloatUnaryCondition

CM_FloatUnaryOperation

CM_IntBinaryCondition

CM_IntBinaryOperation

CM_IntToBool

CM_IntToFloat

CM_IntToNumber

CM_IntUnaryCondition

CM_IntUnaryOperation

CM_NearestSDXLExtendedResolution

CM_NearestSDXLResolution

CM_NumberBinaryCondition

CM_NumberBinaryOperation

CM_NumberToFloat

CM_NumberToInt

CM_NumberUnaryCondition

CM_NumberUnaryOperation

CM_SDXLExtendedResolution

CM_SDXLResolution

CM_Vec2BinaryCondition

CM_Vec2BinaryOperation

CM_Vec2ScalarOperation

CM_Vec2ToScalarBinaryOperation

CM_Vec2ToScalarUnaryOperation

CM_Vec2UnaryCondition

CM_Vec2UnaryOperation

CM_Vec3BinaryCondition

CM_Vec3BinaryOperation

CM_Vec3ScalarOperation

CM_Vec3ToScalarBinaryOperation

CM_Vec3ToScalarUnaryOperation

CM_Vec3UnaryCondition

CM_Vec3UnaryOperation

CM_Vec4BinaryCondition

CM_Vec4BinaryOperation

CM_Vec4ScalarOperation

CM_Vec4ToScalarBinaryOperation

CM_Vec4ToScalarUnaryOperation

CM_Vec4UnaryCondition

CM_Vec4UnaryOperation