ComfyUI-KJNodes
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
CreateFluidMask
CreateFluidMask Node Documentation
Overview
The CreateFluidMask node is part of the ComfyUI-KJNodes library. This node is designed to generate dynamic fluid-like mask animations. Using principles from fluid simulation, this node creates masks that can be used in various creative workflows, particularly those involving animation or effects that require organic and flowing textures.
Inputs
The CreateFluidMask node accepts several inputs that control the properties of the generated fluid mask:
- Invert (BOOLEAN): Determines if the output mask should be inverted. The default is
False. - Frames (INT): Specifies the number of frames in the animation. More frames lead to longer animations. The default is
1. - Width (INT): The width of the generated fluid mask in pixels. The default is
256, with a range from16to4096. - Height (INT): The height of the generated fluid mask in pixels. The default is
256, with a range from16to4096. - Inflow Count (INT): Number of points where the fluid will enter the mask. These act as sources of fluid. The default is
3. - Inflow Velocity (INT): The speed at which the fluid enters the mask. Higher values create more dynamic fluid motion. The default is
1. - Inflow Radius (INT): The radius around each inflow point where the fluid is initialized. The default is
8. - Inflow Padding (INT): Padding from the edge for inflow points, preventing fluid from spawning too close to the boundary. The default is
50. - Inflow Duration (INT): Duration for which the inflow sources remain active. This impacts how long the fluid is "pushed" into the scene. The default is
60.
Outputs
The node outputs two tensors:
- Image (IMAGE): The fluid animation represented as a sequence of RGB images.
- Mask (MASK): A corresponding binary mask animation that highlights the fluid structures.
Both outputs can be used further in ComfyUI workflows to create complex visual effects by overlaying them onto other images or inputs.
Usage in ComfyUI Workflows
The CreateFluidMask node is beneficial in workflows requiring dynamic and organic mask patterns. Common scenarios might include:
- Creating Animated Textures: Use the generated fluid masks to modulate other image properties, such as transparency or color effects, to produce dynamic textures.
- Background Effects: Integrate the fluid masks into backgrounds or overlays to add motion to what would otherwise be static scenes.
- Transitions and Wipes: Use the fluid masks as transition effects to blend between different visual elements smoothly.
Special Features and Considerations
- Realistic Fluid Dynamics: The node uses concepts from fluid simulation to produce animations. This allows for the creation of masks with realistic movement.
- Adjustability: With several parameters, this node provides flexibility in how the fluid behaves, letting users tailor the effect to their specific needs.
- Inversion Option: The ability to invert the masks can be useful when integrating the fluid effect with other visual elements, offering an additional layer of creative control.
- Performance Considerations: Generating complex fluid animations with high resolutions and frame counts can be computationally intensive. Adjust these parameters according to your system's capabilities to achieve optimal performance.
By leveraging these capabilities, users can add sophisticated dynamic effects to their ComfyUI projects with ease.