XB-BOX - Master Parameter:
The XB_MasterParameter node is a versatile tool designed to manage and control various parameter modes within the XB_ToolBox framework. Its primary function is to provide a flexible mechanism for adjusting numerical values based on different operational modes, such as "Free Mode," "Model Mode," "Encode Mode," "Decode Mode," "Ratio Mode," and "Other Mode." Each mode imposes specific constraints on the input value, ensuring that it falls within a predefined range suitable for the mode's context. This node is particularly beneficial for AI artists who need to fine-tune parameters dynamically, allowing for precise control over the values used in their creative processes. By offering a structured approach to parameter management, the XB_MasterParameter node enhances the efficiency and effectiveness of workflows that require adaptable parameter settings.
XB-BOX - Master Parameter Input Parameters:
mode
The mode parameter determines the operational context in which the node functions. It offers several options: "Free Mode," "Model Mode," "Encode Mode," "Decode Mode," "Ratio Mode," and "Other Mode." Each mode applies specific constraints to the value parameter, tailoring its range and behavior to suit different scenarios. For instance, "Free Mode" allows a wide range of values, while "Model Mode" restricts the value to a smaller range. The default mode is "Free Mode," providing maximum flexibility unless a specific mode is required for the task at hand.
value
The value parameter is a floating-point number that represents the numerical input to be adjusted based on the selected mode. It has a default value of 1024.0 and can range from a minimum of 0.0 to a maximum of 9999.0, with a step increment of 0.01. The impact of this parameter is mode-dependent; for example, in "Encode Mode" and "Decode Mode," the value is adjusted to the nearest multiple of 32 within a specified range. This parameter is crucial for setting precise values that align with the operational requirements of the chosen mode.
XB-BOX - Master Parameter Output Parameters:
Integer (INT)
The Integer (INT) output provides the adjusted value as an integer, rounded to the nearest whole number. This output is useful when an integer representation of the value is required, such as when interfacing with systems or processes that only accept integer inputs.
Float (FLOAT)
The Float (FLOAT) output delivers the adjusted value as a floating-point number, preserving the precision of the input value after mode-specific adjustments. This output is essential for scenarios where precise decimal values are necessary, allowing for fine-grained control over the parameter settings.
XB-BOX - Master Parameter Usage Tips:
- Utilize "Free Mode" when you need maximum flexibility in setting the
valueparameter without any constraints, allowing for a wide range of creative possibilities. - When working with encoding or decoding processes, select "Encode Mode" or "Decode Mode" to ensure the
valueis automatically adjusted to the nearest multiple of 32, optimizing compatibility with systems that require specific value alignments.
XB-BOX - Master Parameter Common Errors and Solutions:
ValueError: Value out of range
- Explanation: This error occurs when the
valueparameter exceeds the allowable range for the selected mode. - Solution: Ensure that the
valueis within the specified range for the chosen mode. Refer to the mode-specific constraints to adjust thevalueaccordingly.
TypeError: Invalid mode selection
- Explanation: This error arises when an unsupported mode is selected for the
modeparameter. - Solution: Verify that the
modeparameter is set to one of the supported options: "Free Mode," "Model Mode," "Encode Mode," "Decode Mode," "Ratio Mode," or "Other Mode." Adjust the mode selection to a valid option.
