Aeoll / ae_SVG

SVG Importer and Exporter for Houdini
GNU Lesser General Public License v3.0
101 stars 10 forks source link

Invalid source SVG_Import1:zoffset.. #3

Closed vvzen closed 3 years ago

vvzen commented 6 years ago

screen shot 2018-04-29 at 05 17 13

Thanks for this awesome tool! Currently I have an issue while trying to import this svg: Can you shed any light?

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024pt" height="768pt" viewBox="0 0 1024 768" version="1.1">
<g id="surface5">
<rect x="0" y="0" width="1024" height="768" style="fill:rgb(78.431373%,78.431373%,78.431373%);fill-opacity:1;stroke:none;"/>
<rect x="0" y="0" width="1024" height="768" style="fill:rgb(100%,100%,100%);fill-opacity:1;stroke:none;"/>
<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M -80.957031 -43.351562 L -75.535156 -53.507812 L -66.945312 -65.921875 L -57.140625 -57.300781 L -48.496094 -49.675781 L -42.277344 -44.027344 L -35.78125 -37.652344 L -27.257812 -27.351562 L -27.324219 -33.246094 L -27.882812 -40.679688 L -26.925781 -47.183594 L -25.363281 -53.835938 L -26.207031 -61.761719 L -30.492188 -77.1875 L -40.230469 -87.292969 L -36.035156 -99.46875 L -25.824219 -101.429688 L -15.636719 -103.183594 L -3.738281 -104.433594 L -13.886719 -93.371094 L -25.308594 -83.945312 L -35.722656 -76.265625 L -44.273438 -68.316406 L -50.464844 -57.136719 L -37.003906 -61.898438 L -23.699219 -65.800781 L -9.96875 -70.765625 L 4.003906 -70.507812 L 15.792969 -78.785156 L 21.949219 -84.28125 L 31.125 -83.351562 L 41.414062 -80.503906 L 52.480469 -84.308594 L 38.132812 -89.410156 L 23.960938 -94.75 L 11.640625 -90.4375 L 3.570312 -78.886719 L -1.582031 -69.234375 L -6.167969 -59.414062 L -9.929688 -50.273438 L -14.210938 -40.742188 L -14.796875 -31.101562 L -14.914062 -21.167969 L -12.871094 -10.109375 L -5.914062 -3.324219 L 0.589844 3.550781 L 9.050781 8.011719 L 3.816406 -1.1875 L -1.15625 -10.75 L -3.097656 -22.550781 L 4.867188 -31.804688 L 15.597656 -38.035156 L 28.503906 -44.648438 L 35.15625 -51.980469 L 45.875 -54.308594 L 55.25 -47.167969 L 68.386719 -47.660156 L 57.050781 -55.703125 L 46.941406 -62.804688 L 37.261719 -69.523438 L 26.792969 -75.457031 L 11.066406 -79.441406 L 19.65625 -74.027344 L 28.851562 -62.292969 L 37.9375 -49.769531 L 45.53125 -37.789062 L 38.457031 -25.90625 L 32.515625 -14.5 L 38.605469 -12.042969 L 47.394531 -14.289062 L 58.53125 -14.113281 L 65.210938 -7.632812 L 70.402344 -1.058594 L 74.230469 6.101562 L 78.765625 13.246094 L 86.570312 21.550781 L 90.292969 26.558594 L 85.804688 15.601562 L 86.488281 3.996094 L 74.347656 -6.273438 L 63.199219 -16.828125 L 52.777344 -25.378906 L 44.105469 -32.804688 L 36.089844 -39.121094 L 27.574219 -47.269531 L 19.328125 -53.886719 L 6.476562 -61.125 L 10.730469 -46.445312 L 14.832031 -32.589844 L 18.867188 -19.355469 L 22.28125 -7.601562 L 26.722656 3.972656 L 31.261719 14.714844 L 31.652344 25.957031 L 33.339844 38.730469 L 44.894531 44.078125 L 53.664062 45.050781 L 64.707031 54.164062 L 74.84375 59.148438 L 75.988281 49.15625 L 73.484375 38.011719 L 70.945312 23.800781 L 68.113281 10.316406 L 62.332031 2.355469 L 55.917969 -6.007812 L 43.753906 -16.597656 L 42.242188 -8.167969 L 49.671875 4.136719 L 56.972656 16.972656 L 64.859375 30.84375 L 67.980469 44.820312 L 55.210938 51.144531 L 42.539062 56.324219 L 31.386719 60.316406 L 20.757812 65 L 9.851562 68.394531 L -2.574219 58.820312 L 3.574219 44.03125 L -1.328125 44.816406 L -6.867188 47.21875 L -12.617188 49.875 L -21 50.648438 L -29.175781 49.339844 L -40.488281 48.132812 L -54.28125 46.226562 L -61.011719 44.890625 L -69.339844 37.234375 L -79.355469 28.753906 L -90.855469 25.945312 L -81.242188 36.976562 L -72.382812 48.621094 L -64.710938 59.734375 L -58.089844 68.140625 L -49.734375 76.648438 L -33.132812 78.703125 L -19.007812 81.148438 L -10.886719 71.09375 L -1.261719 63.25 L 8.144531 56.136719 L 15.894531 49.265625 L 25.941406 45.417969 L 36.667969 42.035156 L 45.851562 37.5 L 57.792969 28.613281 L 42.757812 26.078125 L 28.691406 23.636719 L 15.457031 21.175781 L 2.996094 18.46875 L -9.308594 15.414062 L -21.855469 11.851562 L -32.492188 4.050781 L -35.183594 9.488281 L -40.453125 15.421875 L -47.640625 22.214844 L -58.191406 22.640625 L -65.800781 17.960938 L -72.382812 12.9375 L -79.789062 7.859375 L -86.996094 1.554688 L -92.871094 -7.285156 L -98.507812 -17.488281 L -100.152344 -26.515625 L -101.613281 -38.011719 L -90.703125 -28.757812 L -80.628906 -20.367188 L -73.566406 -11.183594 L -66.621094 -2.144531 L -61.304688 7.261719 L -56.328125 16.246094 L -55.3125 27.890625 L -54.066406 39.398438 L -50.691406 49.132812 L -46.664062 59.671875 L -37.320312 71.878906 L -36.214844 59.542969 L -37.722656 46.417969 L -39.808594 33.015625 L -36.5625 26.777344 L -29 32.207031 L -20.164062 37.6875 L -4.234375 43.921875 L -9.339844 29.667969 L -14.003906 17.765625 L -18.019531 6.890625 L -21.835938 -4.222656 L -26.089844 -13.765625 L -31.929688 -22.28125 L -35.933594 -29.289062 L -43.300781 -33.21875 L -51.167969 -35.757812 L -59.878906 -37.964844 L -70.578125 -40.488281 "/>
</g>
</svg>
Aeoll commented 6 years ago

Hi,

No problems with your SVG here - have you successfully imported any other files? If not my guess would be that the svg.path python library isn't installed correctly.

vvzen commented 6 years ago

I followed you guide at night and I may have missed some pieces, so I'm definitely gonna check again. Now that I'm here, is there a way in Houdini to use the system python (or another python)? I'm on Mac, using the brew installed python and I'd like to have Houdini use this one, where I have a bunch of other useful packages that I'd like to use in Houdini. I remember something about setting a var in houdini.env . Btw, thanks for your quick reply!

Aeoll commented 6 years ago

It looks like on Mac Houdini uses the system python by default (http://www.sidefx.com/docs/houdini/hom/index.html).

Apparently someone else had trouble with a homebrew python install though - might be helpful to you? http://forums.odforce.net/topic/24989-homebrew-python-problem-on-mac-osx/