SEGS Switch [RvTools]:
The SEGS Switch [RvTools] node is designed to facilitate the selection between two SEGS inputs based on a specified condition. This node acts as a decision-making tool within a node-based workflow, allowing you to dynamically choose between two different SEGS data streams. By providing a simple yet effective mechanism to switch between inputs, it enhances the flexibility and adaptability of your workflow, enabling you to tailor the processing path according to specific requirements or conditions. This capability is particularly beneficial in scenarios where different SEGS inputs need to be processed under varying conditions, ensuring that the most appropriate data stream is utilized at any given time.
SEGS Switch [RvTools] Input Parameters:
Input
The Input parameter is an integer that determines which SEGS input will be selected for output. It functions as a switch, where the value of 1 selects input1 and the value of 2 selects input2. This parameter is crucial as it directly influences the node's execution path and the resulting output. The Input parameter has a default value of 1, with a minimum value of 1 and a maximum value of 2, ensuring that only valid selections are made between the two available inputs.
input1
The input1 parameter is an optional SEGS input that can be selected based on the Input parameter's value. When Input is set to 1, input1 is chosen as the output. This parameter is marked with forceInput: True, indicating that it must be provided if it is to be used. The presence of this parameter allows for the inclusion of a specific SEGS data stream in the decision-making process.
input2
The input2 parameter is another optional SEGS input that can be selected based on the Input parameter's value. When Input is set to 2, input2 is chosen as the output. Similar to input1, this parameter is also marked with forceInput: True, requiring its provision if it is to be utilized. This parameter provides an alternative SEGS data stream, offering flexibility in the selection process.
SEGS Switch [RvTools] Output Parameters:
SEGS
The output parameter is a SEGS data stream that results from the selection made by the Input parameter. This output is crucial as it represents the chosen SEGS input, either input1 or input2, based on the specified condition. The SEGS output is integral to the workflow, as it determines the subsequent processing path and ensures that the appropriate data stream is utilized for further operations.
SEGS Switch [RvTools] Usage Tips:
- Ensure that both
input1andinput2are provided if you plan to switch between them dynamically. This will prevent any execution errors due to missing inputs. - Use the
Inputparameter to control the flow of your workflow dynamically. By adjusting this parameter, you can easily switch between different SEGS data streams based on your specific needs or conditions.
SEGS Switch [RvTools] Common Errors and Solutions:
MissingInputError
- Explanation: This error occurs when one or both of the required SEGS inputs (
input1orinput2) are not provided, despite being marked asforceInput: True. - Solution: Ensure that both
input1andinput2are supplied when configuring the node. Double-check your connections to confirm that the necessary inputs are correctly linked.
InvalidInputValueError
- Explanation: This error arises when the
Inputparameter is set to a value outside the allowed range of 1 to 2. - Solution: Verify that the
Inputparameter is set to either 1 or 2. Adjust the parameter value to fall within the valid range to resolve this issue.
