ComfyUI > Nodes > MTB Nodes > Batch Shape (mtb)

ComfyUI Node: Batch Shape (mtb)

Class Name

Batch Shape (mtb)

Category
mtb/batch
Author
melMass (Account age: 3754days)
Extension
MTB Nodes
Latest Updated
2024-07-02
Github Stars
0.35K

How to Install MTB Nodes

Install this extension via the ComfyUI Manager by searching for MTB Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MTB Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Batch Shape (mtb) Description

Generate batch shapes with specific attributes for AI artists to create complex visual patterns programmatically, streamlining shape generation.

Batch Shape (mtb):

The Batch Shape (mtb) node is designed to generate a batch of shapes with specific attributes, making it a powerful tool for AI artists looking to create complex visual patterns or designs programmatically. This node allows you to define various parameters such as the number of shapes, their type, size, color, and positioning within a given canvas. By leveraging this node, you can efficiently produce a multitude of shapes with consistent properties, which can be particularly useful for tasks that require repetitive patterns or intricate designs. The main goal of the Batch Shape (mtb) node is to streamline the process of shape generation, saving you time and effort while ensuring high-quality results.

Batch Shape (mtb) Input Parameters:

count

This parameter specifies the number of shapes to generate. It directly impacts the density and complexity of the resulting pattern. For example, a higher count will produce more shapes, leading to a denser design, while a lower count will result in a sparser pattern. The minimum value is 1, and there is no strict maximum, but very high values may affect performance.

shape

This parameter defines the type of shape to generate, such as circles, squares, or triangles. The choice of shape will influence the overall aesthetic of the design. Common options include "circle", "square", and "triangle".

image_width

This parameter sets the width of the canvas on which the shapes will be drawn. It determines the horizontal space available for the shapes. The value should be a positive integer representing the number of pixels.

image_height

This parameter sets the height of the canvas on which the shapes will be drawn. It determines the vertical space available for the shapes. The value should be a positive integer representing the number of pixels.

shape_size

This parameter specifies the size of the shapes. It affects the visual prominence of each shape within the canvas. The value should be a positive integer, with larger values producing bigger shapes.

color

This parameter defines the color of the shapes. It can be specified in various formats, such as RGB or hexadecimal. The choice of color will impact the visual appeal and contrast of the shapes against the background.

bg_color

This parameter sets the background color of the canvas. It provides a backdrop against which the shapes will be displayed. Similar to the color parameter, it can be specified in RGB or hexadecimal format.

shade_color

This parameter specifies the color used for shading the shapes, adding depth and dimension to the design. It enhances the visual complexity by creating a shadow effect. The color can be defined in RGB or hexadecimal format.

thickness

This parameter determines the thickness of the shape's outline. It affects the visual weight and definition of the shapes. The value should be a positive integer, with higher values producing thicker outlines.

shadex

This parameter sets the horizontal offset for the shading effect. It controls the direction and distance of the shadow along the x-axis. The value can be positive or negative, depending on the desired shadow direction.

shadey

This parameter sets the vertical offset for the shading effect. It controls the direction and distance of the shadow along the y-axis. The value can be positive or negative, depending on the desired shadow direction.

Batch Shape (mtb) Output Parameters:

shapes

This output parameter provides the generated shapes as a batch. Each shape in the batch will have the attributes specified by the input parameters, such as type, size, color, and shading. The output can be used for further processing or directly rendered in your design.

Batch Shape (mtb) Usage Tips:

  • Experiment with different count values to achieve the desired density of shapes in your design.
  • Use contrasting color and bg_color values to make the shapes stand out more prominently.
  • Adjust the shape_size and thickness parameters to balance the visual weight of the shapes.
  • Utilize the shadex and shadey parameters to create realistic shadow effects that add depth to your design.

Batch Shape (mtb) Common Errors and Solutions:

"Invalid shape type"

  • Explanation: The shape parameter was set to an unsupported value.
  • Solution: Ensure that the shape parameter is set to a valid shape type, such as "circle", "square", or "triangle".

"Canvas size too small"

  • Explanation: The image_width or image_height parameters are set to values that are too small to accommodate the shapes.
  • Solution: Increase the image_width and image_height parameters to provide sufficient space for the shapes.

"Shape size too large"

  • Explanation: The shape_size parameter is set to a value that is too large for the given canvas size.
  • Solution: Reduce the shape_size parameter or increase the canvas size to ensure the shapes fit within the canvas.

"Invalid color format"

  • Explanation: The color, bg_color, or shade_color parameters are set to values in an unsupported format.
  • Solution: Ensure that the color parameters are specified in a valid format, such as RGB or hexadecimal.

Batch Shape (mtb) Related Nodes

Go back to the extension to check out more related nodes.
MTB Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.