ComfyUI > Nodes > zhangp365/ComfyUI-utils-nodes > Int Multiple and Add Literal

ComfyUI Node: Int Multiple and Add Literal

Class Name

IntMultipleAddLiteral

Category
utils/numbers
Author
zhangp365 (Account age: 408days)
Extension
zhangp365/ComfyUI-utils-nodes
Latest Updated
2024-10-16
Github Stars
0.03K

How to Install zhangp365/ComfyUI-utils-nodes

Install this extension via the ComfyUI Manager by searching for zhangp365/ComfyUI-utils-nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter zhangp365/ComfyUI-utils-nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Int Multiple and Add Literal Description

Perform linear transformation on integers, generating original and transformed values for precise control in projects.

Int Multiple and Add Literal:

The IntMultipleAddLiteral node is designed to perform a simple yet powerful mathematical operation on integers. It takes an integer input and applies a linear transformation to it, producing two outputs: the original integer and a transformed value based on a linear equation. This node is particularly useful for scenarios where you need to manipulate integer values in a straightforward manner, such as adjusting parameters or creating sequences. By providing a flexible and easy-to-use interface, this node helps you streamline your workflow and achieve precise control over numerical values in your projects.

Int Multiple and Add Literal Input Parameters:

number

The number parameter is the primary integer input for the node. It represents the base value that will be used in the linear transformation. This parameter is required and has a default value of 0. The minimum value for number is 0, and the maximum value is 1,000,000. Adjusting this parameter will directly affect the output values, making it a crucial component for controlling the node's behavior.

a

The a parameter is a multiplier used in the linear transformation equation. It is an optional parameter with a default value of 1. This parameter allows you to scale the number input, providing flexibility in how the transformation is applied. By adjusting the a parameter, you can control the degree of scaling applied to the number, which can be useful for various mathematical and procedural tasks.

b

The b parameter is an offset added to the scaled number input in the linear transformation equation. It is an optional parameter with a default value of 0. This parameter allows you to shift the transformed value by a specified amount, providing additional control over the final output. By adjusting the b parameter, you can fine-tune the result of the transformation to meet your specific needs.

Int Multiple and Add Literal Output Parameters:

x

The x output parameter represents the original integer input value. This output allows you to retain the base value for further use in your workflow, ensuring that you have access to both the original and transformed values.

ax + b

The ax + b output parameter represents the result of the linear transformation applied to the number input. This value is calculated using the equation ax + b, where a is the multiplier and b is the offset. This output provides the transformed value, which can be used in various mathematical operations or as an input for other nodes in your workflow.

Int Multiple and Add Literal Usage Tips:

  • Use the number parameter to set the base value for your transformation. Adjust this value to control the starting point of your calculations.
  • Experiment with the a and b parameters to achieve the desired scaling and offset for your transformation. These parameters provide flexibility in how the number input is manipulated, allowing you to fine-tune the output values.

Int Multiple and Add Literal Common Errors and Solutions:

"Invalid input: number must be an integer"

  • Explanation: This error occurs when the number parameter is not an integer.
  • Solution: Ensure that the number parameter is set to an integer value within the specified range (0 to 1,000,000).

"Invalid input: a must be an integer"

  • Explanation: This error occurs when the a parameter is not an integer.
  • Solution: Ensure that the a parameter is set to an integer value.

"Invalid input: b must be an integer"

  • Explanation: This error occurs when the b parameter is not an integer.
  • Solution: Ensure that the b parameter is set to an integer value.

Int Multiple and Add Literal Related Nodes

Go back to the extension to check out more related nodes.
zhangp365/ComfyUI-utils-nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.