ComfyUI  >  Nodes  >  Avatar Graph >  Create Mesh Layer (Advanced)

ComfyUI Node: Create Mesh Layer (Advanced)

Class Name

Object_CreateMeshLayer_Advanced

Category
blender
Author
avatechai (Account age: 905 days)
Extension
Avatar Graph
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install Avatar Graph

Install this extension via the ComfyUI Manager by searching for  Avatar Graph
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Avatar Graph 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

Create Mesh Layer (Advanced) Description

Create detailed mesh layers from image textures in Blender with advanced customization options for AI artists.

Create Mesh Layer (Advanced):

The Object_CreateMeshLayer_Advanced node is designed to create a mesh layer from a given image texture in Blender, offering advanced customization options for AI artists. This node allows you to generate a mesh based on the texture, apply transformations, and manipulate the mesh structure with various parameters. It provides enhanced control over the mesh creation process, including options for convex hull generation, scaling, extrusion, and translation. The primary goal of this node is to facilitate the creation of complex and detailed mesh layers that can be used in various artistic and design projects, making it a powerful tool for those looking to integrate texture-based meshes into their 3D models.

Create Mesh Layer (Advanced) Input Parameters:

image

This parameter accepts an image texture that will be used to generate the mesh. The image serves as the basis for the mesh creation process, influencing the shape and structure of the resulting mesh.

convex_hull

This boolean parameter determines whether a convex hull should be generated for the mesh. When set to True, the node will create a convex hull, which is a minimal bounding shape that encompasses all vertices. The default value is True.

shape_threshold

This float parameter sets the threshold for the shape when generating the convex hull. It controls the precision of the convex hull, with higher values resulting in a more simplified shape. The default value is 0.7.

mesh_layer_name

This string parameter specifies the name of the vertex group that will be created for the mesh layer. It allows you to organize and identify the mesh layer within Blender. The default value is "mesh_layer".

scale_x

This float parameter controls the scaling factor along the X-axis for the mesh. It allows you to resize the mesh horizontally. The default value is 1.

scale_y

This float parameter controls the scaling factor along the Y-axis for the mesh. It allows you to resize the mesh vertically. The default value is 1.

extrude_x

This float parameter sets the extrusion distance along the X-axis. It allows you to extend the mesh outward horizontally. The default value is 0.

extrude_y

This float parameter sets the extrusion distance along the Y-axis. It allows you to extend the mesh outward vertically. The default value is 0.

inner_translate_x

This float parameter controls the translation distance along the X-axis for the inner part of the mesh. It allows you to move the inner vertices horizontally. The default value is 0, with a step of 0.01.

inner_translate_y

This float parameter controls the translation distance along the Y-axis for the inner part of the mesh. It allows you to move the inner vertices vertically. The default value is 0, with a step of 0.01.

outer_translate_x

This float parameter controls the translation distance along the X-axis for the outer part of the mesh. It allows you to move the outer vertices horizontally. The default value is 0, with a step of 0.01.

outer_translate_y

This float parameter controls the translation distance along the Y-axis for the outer part of the mesh. It allows you to move the outer vertices vertically. The default value is 0, with a step of 0.01.

seed

This integer parameter sets the seed value for random operations within the node. It ensures reproducibility of the mesh generation process. The default value is 0, with a minimum of 0 and a maximum of 0xffffffffffffffff.

Create Mesh Layer (Advanced) Output Parameters:

BPY_OBJ

This output parameter returns the Blender object created from the image texture. It represents the generated mesh layer that can be further manipulated or integrated into your 3D scene.

IMAGE

This output parameter returns the processed image used to generate the mesh. It allows you to keep track of the image texture associated with the created mesh layer.

Create Mesh Layer (Advanced) Usage Tips:

  • To create a more detailed mesh, use a high-resolution image texture as input.
  • Adjust the shape_threshold parameter to fine-tune the precision of the convex hull, balancing between detail and simplicity.
  • Use the scale_x and scale_y parameters to resize the mesh to fit your scene requirements.
  • Experiment with the extrude_x and extrude_y parameters to add depth and complexity to the mesh layer.
  • Utilize the inner_translate_x, inner_translate_y, outer_translate_x, and outer_translate_y parameters to achieve precise positioning of the mesh vertices.

Create Mesh Layer (Advanced) Common Errors and Solutions:

"Image not found"

  • Explanation: The specified image texture could not be located.
  • Solution: Ensure that the image file path is correct and the image is accessible.

"Invalid shape threshold value"

  • Explanation: The shape_threshold parameter is set to an invalid value.
  • Solution: Set the shape_threshold to a float value between 0 and 1.

"Mesh layer name already exists"

  • Explanation: The specified mesh_layer_name already exists in the Blender context.
  • Solution: Choose a unique name for the mesh_layer_name parameter to avoid conflicts.

"Extrusion values must be non-negative"

  • Explanation: The extrude_x or extrude_y parameters are set to negative values.
  • Solution: Ensure that the extrude_x and extrude_y parameters are set to non-negative values.

Create Mesh Layer (Advanced) Related Nodes

Go back to the extension to check out more related nodes.
Avatar Graph
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.