A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
The LayerUtility: Float node in the ComfyUI framework is designed to handle floating-point numbers within your workflow. It serves as a utility to pass, manipulate, and convert floating-point numbers primarily for data processing or calculation operations in configured workflows.
This node enables users to input a floating-point number, process it, and retrieve the float in string form together with its numerical representation. This feature is especially useful for workflows requiring the versatility of float manipulation or conversion.
The node produces two types of outputs:
FLOAT: This output returns the numeric representation of the inputted floating-point number. It retains its precision and can be used in arithmetic or comparative operations within the workflow.
STRING: The node also outputs the floating-point number as a string. This conversion can be beneficial for logging, UI display, or any application where a textual representation is required.
The LayerUtility: Float node is integral to workflows where floating-point operations are essential. Its primary applications include:
Mathematical Calculations: It can be part of a chain of nodes performing complex calculations by inputting float data, manipulating it, and then outputting both numeric and string formats.
Condition Checks: Use this node to output float values to be consumed by other nodes or conditions in a workflow, such as comparing numerical values using logical operators.
Data Formatting: Converting floating-point numbers to string format serves purposes such as formatting outputs for user interfaces or logging processes where a readable text version is required.
Precision Handling: The node's precision setting (step of (0.00001)) ensures that users can work with highly precise data, which is crucial in calculations requiring fine detail.
Wide Range Support: Its vast range of acceptable input values ((-1e18) to (1e18)) ensures suitability for various applications, including those handling large datasets or computations that result in substantial numbers.
Flexibility and Versatility: The node's ability to output in both FLOAT and STRING formats adds versatility, allowing seamless integration into diverse workflow scenarios that include both numerical processing and string manipulation.
Whether you are managing detailed float calculations, preparing data for visual interfaces, or needing flexible data conversion tools, the LayerUtility: Float node provides comprehensive functionality aligned with the demands of precise and efficient UI workflows in ComfyUI.