Object Lineart Clear All
Wipe every baked line-art stroke in the scene at once
- BPY_OBJ
- BPY_OBJ
Object_LineartClearAll is the scene-wide version of Object_LineartClear. It runs Blender's bpy.ops.object.lineart_clear_all, which removes baked line art strokes from every object in the current Blender scene, not just the one you hand it. In the Avatar Graph pack it pairs naturally with Object_LineartBakeStrokesAll: bake everything, then when you change the character, clear everything and bake again.
That pairing is the honest reason this node exists. Blender's line art bake is a snapshot - once strokes are baked to grease pencil, they don't update when the source mesh changes. So the clean workflow for an outlined avatar is a clear-all → tweak → bake-all loop, and in a graph you can make that loop a repeatable chain instead of a manual Blender habit.
How it works
Like every Object_* node in this pack, it's a thin auto-generated wrapper around a Blender operator, running against a shared headless Blender 3.6 instance. It takes an optional BPY_OBJ input (mostly ceremonial here - the operator ignores per-object targeting and sweeps the whole scene) and returns the same BPY_OBJ so you can keep your chain wired. The parameters that matter on the node itself: none. If you have baked strokes anywhere and you want them gone, this is the one node that guarantees it.
When to reach for it vs. the single-object version
Object_LineartClear- one object's strokes. Use it when only part of the character changed.Object_LineartClearAll- the whole scene. Use it when you're re-baking everything, which is the common case early in a rig.
The trap is doing this too late in the pipeline: if your grease pencil strokes have already been exported or used downstream, clearing is destructive and there's no per-node history to get them back. Clear-before-rebake is a rhythm, not a habit to apply mid-export.
Installation
Avatar Graph requires Python 3.10.x (bpy 3.6 wheels are 3.10-only). Install via ComfyUI Manager by searching "Avatar Graph", or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui
pip install -r requirements.txt
Then restart ComfyUI with python main.py --enable-cors-header if you want the live avatar preview. First launch auto-downloads the SAM ViT-H checkpoint (~2.4 GB) and mediapipe face/pose models - expect a long first boot. If this node seems to do nothing, you almost certainly had nothing baked; it's a silent no-op, which is exactly what a clear-all should be.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| BPY_OBJopt | BPY_OBJ | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BPY_OBJ | BPY_OBJ | — |