Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates dynamic source switching based on frame number for AI artists to control transitions in animations.
The chaosaiart_Frame_Switch
node is designed to facilitate dynamic switching between two different sources based on the current frame number in an animation or sequence. This node is particularly useful for AI artists who need to change the input source at a specific frame during the rendering process. By setting a switch frame, you can control when the transition between the two sources occurs, allowing for more complex and varied animations. This node helps in creating seamless transitions and can be used to introduce different elements or effects at precise moments in your animation timeline.
The activ_frame
parameter represents the current frame number in the animation sequence. This parameter is crucial as it determines whether the node should output the source before or after the switch frame. The value of activ_frame
is dynamically updated as the animation progresses, ensuring that the correct source is selected at the right time.
The source_before_frame
parameter specifies the input source that will be used before the switch frame is reached. This can be any type of input, such as an image, a video frame, or any other data type that the node can process. The node will output this source until the activ_frame
reaches the Switch_frame
value.
The source_after_frame
parameter defines the input source that will be used after the switch frame is reached. Similar to source_before_frame
, this can be any type of input. Once the activ_frame
surpasses the Switch_frame
value, the node will switch to this source for the remainder of the animation.
The Switch_frame
parameter is an integer that sets the specific frame number at which the node will switch from source_before_frame
to source_after_frame
. The default value is 30, with a minimum value of 1 and a maximum value of 18446744073709551615. This parameter allows you to precisely control the timing of the source switch in your animation.
The SOURCE
output parameter provides the selected input source based on the current frame number (activ_frame
). If the activ_frame
is less than the Switch_frame
, the output will be source_before_frame
. If the activ_frame
is greater than or equal to the Switch_frame
, the output will be source_after_frame
. This dynamic output ensures that the correct source is used at the appropriate time in the animation sequence.
Switch_frame
value to align with key moments in your sequence.source_before_frame
and source_after_frame
to introduce different visual elements or effects at specific points in your animation, enhancing the overall visual experience.Switch_frame
values to find the optimal timing for your source switch, ensuring a seamless and natural transition.activ_frame
value is not within the valid range.activ_frame
value is a positive integer and within the expected range of your animation sequence.source_before_frame
and source_after_frame
are incompatible.source_before_frame
and source_after_frame
are of the same type or compatible types that the node can process.Switch_frame
value is set outside the valid range.Switch_frame
value to be within the range of 1 to 18446744073709551615, ensuring it falls within the duration of your animation sequence.ยฉ Copyright 2024 RunComfy. All Rights Reserved.