helper.py could not find component

Hi,

[Sorry if this is not the right place, I’ve searched for the repo where helper.py is but couldn’t find it]

I’ve saved a simple .SVG using Inkscape, with a single blue circle in the “components” layer (an output). Inkscape saves the color as CSS, like this:

<circle style="fill:#0000ff;stroke:none;stroke-width:0.16;-inkscape-stroke:none;stop-color:#000000;fill-opacity:1" ...>

The helper.py script supports this, but it has a minor problem. The thing is that it retrieves the color using a regex (r'fill:\s*(#[0-9a-fA-F]{6})') that has \S (capital S, everything but a space) between the word fill: and the hex color. In the previous example, the \S expands from the fill: word up to the second hex color (#000000 in this case), so it returns that as color, and my component gets skipped.

Using a lowercase ‘s’ would fix the problem in this case. Just to whom it might concern.

Cheers.

Bugs in Helper.py (and anything else in Rack, the SDK, or modules created by VCV) should be reported to VCV at VCV - Support.

2 Likes