RgthreePowerPuter
A powerful node that can compute and evaluate expressions and output as various types.
Rgthree Power Puter
Description
RgthreePowerPuter is a utility node from the ComfyUI-rgthree-comfy package. Its purpose is to compute and evaluate expressions, then output the result as a chosen type. The node is useful for arithmetic, string construction, condition checks, and other small calculations that would otherwise be hard-coded into a workflow. The docstring summarizes it as "A powerful node that can compute and evaluate expressions and output as various types."
Inputs
The current source metadata does not declare formal input sockets for this node. The expression to evaluate and the desired output type are handled by the node's own controls rather than by connections from other nodes. Enter the expression in the node's expression field, then select the output type that matches the downstream node's expected input. If values need to come from elsewhere in the graph, compute or convert them before this node, or incorporate them into the expression according to the supported expression syntax.
Outputs
No named output sockets are listed in the current source metadata. The node produces the evaluated expression result as the selected output type. Because a single expression can be represented as different types, confirm the node's output type setting before connecting it. For example, an expression that produces a number may need to be output as an integer or float depending on the receiving node, while a textual result should be sent only to inputs that accept strings.
Usage Notes
- Use the node when a value should be calculated rather than manually entered. This keeps workflows easier to adjust when a constant changes.
- Select the output type deliberately. The same expression can often be interpreted as text or as a numeric value, and the downstream node will only accept the type it expects.
- Keep expressions readable. Small, well-named calculations are easier to review than long nested expressions.
- The source metadata does not specify a category for this node. It is provided by the ComfyUI-rgthree-comfy package.
- If an expression fails to evaluate, check for syntax issues, mismatched parentheses, or type conversions that are not supported by the selected output type.
Comments
Sign in with GitHub to join the discussion.