Search - User list
Full Version: SVG import
Root » Work in Progress » SVG import
friedasparagus
Hello,

Just been spending the morning getting a rough as guts, python svg import on the go.

Here's the hda.

Reading in the file with xml.dom so should be fairly easy to extend to read colour information etc.

Thought it might be useful to someone somewhere
goldfarb
no hda attached
friedasparagus
Sorry, I suck. Clicked the little checkbox next to the bin!

And I suck again. Forgot to mention you need to install the svg.path module into your one of your scripts folders.

I used:

py -2.7 -m pip install svg.path –target CUsers/$username/Documents/houdini15.5/scripts/python –ignore-installed

The other caveat here is that you seem to need to add an __init__.py file to the generated ‘svg’ folder in order for houdini to find the module inside the sub-folder ‘path’

Oh dear, bit of a faff.
friedasparagus
Ok, tried looking into tidying this module dependency issue, but with no joy. The confusion came from having python2.7.12 installed locally, which seems happier with the .pth file that pip installs with the svg.path module. So, the adding of the init file still needs doing.

If anyone has any tips for getting around this that'd be great
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB