Nodes/svg-suite/SVG Attribute Manipulation
ComfyUI Node

SVG Attribute Manipulation

A ComfyUI node in 💎TOSVG/StringEdit with 9 inputs and 1 output.

By MushroomFleet·Created about a year ago·Updated 4 months ago· 9
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)

    NameTypeDefaultDescription
    svg_stringSTRING—
    operationCOMBOadd_attribute7 options: add_attribute, modify_attribute, remove_attribute, add_class, remove_class, add_style, +1
    element_selectorSTRINGpathCSS selector or element name (e.g., 'path', 'circle', 'rect')
    attribute_nameoptSTRINGopacity—
    attribute_valueoptSTRING0.5—
    class_nameoptSTRINGhighlight—
    style_propertyoptSTRINGopacity—
    style_valueoptSTRING0.5—
    match_indexoptINT-1-1–1000-1 to affect all matching elements

    Outputs (1)

    NameTypeDescription
    STRINGSTRING—