CozyGen Dynamic Input:
The CozyGenDynamicInput node is a versatile component designed to provide dynamic input capabilities within the CozyGen framework. This node allows you to define parameters that can adapt to various data types, including strings, integers, floats, booleans, and dropdown selections. Its primary purpose is to offer flexibility in configuring inputs that can change based on user requirements or external conditions, making it an essential tool for creating adaptable and responsive AI art workflows. By leveraging this node, you can streamline the process of managing input parameters, ensuring that your creative projects can accommodate a wide range of scenarios and preferences. The node's dynamic nature is particularly beneficial for artists who need to experiment with different configurations without being constrained by static input definitions.
CozyGen Dynamic Input Input Parameters:
param_name
This parameter specifies the name of the dynamic parameter you are defining. It is a string value that serves as an identifier for the parameter, allowing you to easily reference it within your workflow. The default value is "Dynamic Parameter".
priority
The priority parameter is an integer that determines the order in which this input is processed relative to other inputs. A higher priority value means the input will be processed earlier. The default value is 10.
param_type
This parameter defines the data type of the dynamic input. It can be one of the following: STRING, INT, FLOAT, BOOLEAN, or DROPDOWN. The default type is STRING, allowing you to specify the kind of data the input will handle.
default_value
The default_value parameter sets the initial value for the dynamic input. It is a string by default, but its actual type should match the specified param_type. This value is used if no other input is provided.
add_randomize_toggle
This optional boolean parameter allows you to add a toggle for randomizing the input value. When set to true, it enables the possibility of generating random values for the input, providing an element of variability. The default is False.
choice_type
This optional string parameter is used to specify the type of choices available for dropdown inputs. It helps in defining the options that can be selected when the param_type is set to DROPDOWN. The default is an empty string.
display_bypass
This optional boolean parameter determines whether the input should be bypassed in the display. When set to true, the input will not be shown in the user interface, allowing for hidden configurations. The default is False.
choices
This hidden string parameter is used by JavaScript to define the available options for dropdown inputs. It is not directly visible to the user but is essential for configuring dropdown selections. The default is an empty string.
multiline
This hidden boolean parameter indicates whether string inputs should support multiline text. It is used by JavaScript to adjust the input field accordingly. The default is False.
min_value
This hidden float parameter sets the minimum allowable value for numeric inputs. It is used by JavaScript to enforce value constraints. The default is 0.0.
max_value
This hidden float parameter defines the maximum allowable value for numeric inputs. It is used by JavaScript to ensure that input values do not exceed this limit. The default is 1.0.
step
This hidden float parameter specifies the increment step for numeric inputs. It is used by JavaScript to determine the granularity of value changes. The default is 0.0.
CozyGen Dynamic Input Output Parameters:
ANY
The output of the CozyGenDynamicInput node is of type ANY, meaning it can return a value of any data type specified by the param_type. This flexibility allows the node to adapt its output to match the input configuration, providing a seamless integration into various workflows. The output value is determined by the dynamic input settings and can be used in subsequent nodes or processes within the CozyGen framework.
CozyGen Dynamic Input Usage Tips:
- Utilize the
param_typeparameter to ensure that your dynamic input matches the expected data type for your workflow, allowing for seamless integration and processing. - Consider using the
add_randomize_toggleoption to introduce variability in your inputs, which can be particularly useful for generating diverse outputs in creative projects.
CozyGen Dynamic Input Common Errors and Solutions:
Invalid param_type
- Explanation: The specified
param_typeis not one of the allowed types (STRING, INT, FLOAT, BOOLEAN, DROPDOWN). - Solution: Ensure that the
param_typeis set to one of the valid options to avoid type mismatch errors.
Value out of range
- Explanation: The input value exceeds the specified
min_valueormax_valueconstraints. - Solution: Adjust the input value to fall within the defined range, or modify the
min_valueandmax_valueparameters to accommodate the desired input.
Missing default_value
- Explanation: No
default_valueis provided, and the input is required for processing. - Solution: Specify a
default_valuethat matches theparam_typeto ensure the node can function correctly without additional input.
