Mesh Dupli Extrude Cursor
Duplicate-and-extrude toward wherever the 3D cursor happens to be
- BPY_OBJ
- BPY_OBJ
This is a modeling shortcut for building geometry point by point - think hand-placing a strand, a chain, or a piece of retopology one segment at a time by moving a target location and repeatedly extending toward it. Mesh_DupliExtrudeCursor wraps bpy.ops.mesh.dupli_extrude_cursor, which duplicates the current selection and connects the new geometry toward Blender's 3D cursor position.
How it works
Where Mesh_DuplicateMove copies geometry in place and Mesh_Duplicate copies it plainly, this node does something more specific: it duplicates the selection and extrudes/connects it toward the scene's 3D cursor, in one step. It's the underlying operator behind a common Blender modeling technique - place the cursor, extend geometry to it, move the cursor again, extend again - used for building continuous strip- or chain-like topology without pre-planning the whole shape.
The important catch for using this inside a ComfyUI graph: the target is the 3D cursor's current position in the scene, and nothing in this node's own inputs lets you set that. None of the other nodes in this batch expose cursor control either. If Avatar Graph has a separate cursor-positioning node elsewhere in its catalog, that's what needs to run first for this to land somewhere deliberate; without it, the result depends on wherever the cursor was last left, which may not be where you expect.
The inputs and outputs that matter
BPY_OBJ(optional) - the object with the selection to duplicate and extrude.rotate_source(defaulttrue) - rotates the originally selected geometry to face the new extrusion direction, which keeps orientation consistent as you build out a continuous strip. Turn it off if you want each new piece added without reorienting what was there before.
Output is a single BPY_OBJ, with the duplicated-and-extruded geometry added.
How to install it
Search Avatar Graph in ComfyUI Manager, or clone manually:
cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui
python -m pip install -r requirements.txt
then restart. bpy==3.6.0 needs Python 3.10.x - README's prebuilt Python-3.10 zip on Windows, conda environment (conda create --name comfyui python=3.10) on Mac/Linux. opencv-python, mediapipe, and segment-anything also install.
Common issues & troubleshooting
The new geometry lands somewhere unexpected, or seemingly nowhere useful. This is almost always the 3D cursor being wherever it was left by a previous operation (often the scene origin, 0,0,0, if nothing's repositioned it) rather than where you intended. Since this batch of nodes has no cursor-control input, check whether your graph includes a separate node for setting cursor position before this one - if it doesn't, the result is effectively unpredictable run to run.
Orientation looks wrong on the new segment. That's rotate_source - toggle it if the automatic reorientation toward the extrusion direction is fighting with what you actually want the source geometry to look like afterward.
Nothing gets duplicated at all. Same root cause as the pack's other selection-driven nodes: an empty or missing selection upstream means nothing here to extrude from.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — | |
| rotate_sourceopt | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |