ComfyUI  >  Nodes  >  Avatar Graph >  Create Mesh Layer

ComfyUI Node: Create Mesh Layer

Class Name

Object_CreateMeshLayer

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 Description

Facilitates creation of 3D mesh layers from 2D images in Blender, enabling detailed 3D models with transformations.

Create Mesh Layer:

The Object_CreateMeshLayer node is designed to facilitate the creation of a mesh layer from a given image texture within Blender. This node is particularly useful for AI artists looking to convert 2D images into 3D mesh layers, enabling more complex and detailed 3D models. By leveraging this node, you can generate a mesh from an image, apply transformations, and customize the mesh layer with various parameters such as scaling, extrusion, and convex hull generation. This node simplifies the process of creating intricate 3D structures from 2D textures, making it an essential tool for enhancing your 3D modeling workflow.

Create Mesh Layer Input Parameters:

image

This parameter accepts an image input that will be used to generate the mesh layer. The image serves as the base texture from which the mesh is created.

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 can help in simplifying the mesh geometry. The default value is True.

shape_threshold

This float parameter controls the shape threshold for the convex hull generation. It influences the accuracy and detail of the convex hull. The default value is 0.7.

mesh_layer_name

This string parameter specifies the name of the vertex group 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 sets the scaling factor along the X-axis for the mesh. It allows you to resize the mesh layer horizontally. The default value is 1.

scale_y

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

extrude_x

This float parameter controls the extrusion distance along the X-axis. It allows you to add depth to the mesh layer by extruding it horizontally. The default value is 0.

extrude_y

This float parameter controls the extrusion distance along the Y-axis. It allows you to add depth to the mesh layer by extruding it vertically. The default value is 0.

seed

This integer parameter sets the seed value for random number generation, ensuring reproducibility of the mesh creation process. The default value is 0, with a minimum of 0 and a maximum of 0xffffffffffffffff.

Create Mesh Layer Output Parameters:

BPY_OBJ

This output parameter returns the Blender object created from the image texture. It represents the 3D mesh layer generated by the node.

IMAGE

This output parameter returns the processed image used to create the mesh layer. It allows you to retain the original image for further use or reference.

Create Mesh Layer Usage Tips:

  • To create a more detailed and accurate mesh, adjust the shape_threshold parameter to a lower value.
  • Use the scale_x and scale_y parameters to resize the mesh layer to fit your desired dimensions.
  • Experiment with the extrude_x and extrude_y parameters to add depth and complexity to your mesh layer.
  • Naming your mesh layers using the mesh_layer_name parameter can help keep your project organized, especially when working with multiple layers.

Create Mesh Layer Common Errors and Solutions:

"Image input is not provided"

  • Explanation: The node requires an image input to generate the mesh layer.
  • Solution: Ensure that you provide a valid image input to the node.

"Invalid shape_threshold value"

  • Explanation: The shape_threshold parameter value is out of the acceptable range.
  • Solution: Adjust the shape_threshold value to be within a reasonable range, typically between 0 and 1.

"Extrude values are zero"

  • Explanation: Both extrude_x and extrude_y parameters are set to 0, resulting in no extrusion.
  • Solution: Set either extrude_x or extrude_y to a non-zero value to achieve the desired extrusion effect.

"Mesh layer name is empty"

  • Explanation: The mesh_layer_name parameter is not provided, leading to an unnamed vertex group.
  • Solution: Provide a valid name for the mesh_layer_name parameter to ensure proper organization of your mesh layers.

Create Mesh Layer 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.