ComfyUI Node
SVG Attribute Manipulation
A ComfyUI node in 💎TOSVG/StringEdit with 9 inputs and 1 output.
SVG Attribute Manipulation
- STRING
◄svg_string—►
â—„operationadd_attributeâ–º
â—„element_selectorpathâ–º
â—„attribute_nameopacityâ–º
â—„attribute_value0.5â–º
â—„class_namehighlightâ–º
â—„style_propertyopacityâ–º
â—„style_value0.5â–º
â—„match_index-1â–º
Category💎TOSVG/StringEdit
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| svg_string | STRING | — | |
| operation | COMBO | add_attribute | 7 options: add_attribute, modify_attribute, remove_attribute, add_class, remove_class, add_style, +1 |
| element_selector | STRING | path | CSS selector or element name (e.g., 'path', 'circle', 'rect') |
| attribute_nameopt | STRING | opacity | — |
| attribute_valueopt | STRING | 0.5 | — |
| class_nameopt | STRING | highlight | — |
| style_propertyopt | STRING | opacity | — |
| style_valueopt | STRING | 0.5 | — |
| match_indexopt | INT | -1-1–1000 | -1 to affect all matching elements |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |