KJNodes/constantsgenerated

INT Constant(INTConstant)

This node is technically implemented as a simple numerical container, whose internal logic is to receive and directly return the integer value set by the user.

INT Constant

value
value
0
KJNodes

The INT Constant node is technically implemented as a simple numerical container. Its internal logic is to receive and directly return the integer value set by the user.

The INT Constant node is a constant node used to generate and output integer values. It allows users to define a fixed integer value within a ComfyUI workflow and pass it to other nodes that require integer input. This node is a fundamental tool for building automated processes and parameterized workflows.

Node Functionality

This node is technically implemented as a simple numerical container. Its internal logic is to receive and directly return the integer value set by the user. It supports an extremely wide range of input integers, from -0xffffffffffffffff to 0xffffffffffffffff, covering almost all practical application needs. The node executes its core functionality through the get_value function, which is to pass the numerical value.

Node Parameter Description - INT Constant

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
valueINTYes0-0xffffffffffffffff - 0xffffffffffffffffParameter description 2 (Output parameter: value): Outputs the integer value set by the user.

Output

Parameter NameData TypeDescription
valueINTParameter description 2 (Output parameter: value): Outputs the integer value set by the user.

Usage Scenarios

In practical applications, when a node in the workflow (such as a node controlling the number of image generation iterations) requires a fixed integer value as input, this node can be used. For example, it can be connected to the "steps" input port of a "KSampler" node to fix the number of sampling steps for each image generation, ensuring consistency in the generation process.

Notes

Since this node outputs a static value, it is generally not suitable for scenarios requiring dynamically changing values. Users must ensure that the input value falls within the acceptable range of the target node to avoid workflow execution errors.

The INT Constant node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…