Importing & Exporting Vectors to from Houdini + Creating Isocontours
ฝัง
- เผยแพร่เมื่อ 25 ธ.ค. 2019
- Support Entagma on Patreon: / entagma
00:48 - Saving .ai files from Iluustrator for Houdini
01:48 - Importing .ai files into Illustrator
04:12 - Building geometry out of the paths
05:40 - Slicing our geometry
07:06 - Hidden surface determination
15:44 - Projecting the lines drawing onto a plane
20:50 - Export vectors as DXF
23:19 - Niklas Rosenstein: Exporting SVGs using Python
Download Project File (.zip): www.dropbox.com/s/1hathsg7d2s...
www.entagma.com
Ok this rocked my world. Thank you very much. Been looking for a way to get Nurbs out of Maya as single curves for a plotter - never knew that writing an SVG exporter could be this cool. This has opened my eyes to a lot of other things too. Much appreciated!
Hello guys ... this video really helps me a lot... Special thank you for your team people and Entagma.
Finally I have put myself to learn about Houdini and your tutorials are very straightforward! Thank you guys!
Now, you can make a "perspective divide" while still in Vex to eliminate the need to project lines on a plane (and delete the plane). Similar when you tried to put (0) to the Z value. There might be other ways, but it would be something like this:
vector ipos[];
vector iuvw[];
int iprims[];
vector campos = point(2, "P", 0);
vector dir = campos - v@P;
int numi = intersect_all(1, v@P + dir * .01, dir, ipos, iprims, iuvw, 0.001, -1);
//****
float scale = 2.5;
vector ndc = ptransform("/obj/cam1", v@P);
v@P[0] = -ndc.x/ndc.z * scale;
v@P[1] = -ndc.y/ndc.z * scale;
v@P[2] = 0;
//****
if(numi > 0)
removepoint(0, @ptnum);
This is really great. Very Useful even to just bring logos and smooth geo. Thanks.
Thank you so much! It's a great tutorial and exporting svg solution!
Awesome Tutorial!
Thank you!
If you draw a rectangle with no stroke-width around the edges of the artboard, Houdini will scale your imported file to fit a 1 by 1 tile. The longest side will go from 0 to 1. Centering the artwork becomes much easier after this, especially if you need to layer multiple Illustrator files in Houdini. To center an artboard of 1920x1080, translate X by "-0.5", and Y by "1080/1920*0.5". No stroke-width ensures it won't create unwanted points or primitives in Houdini.
Thank you for your work! I would like to store (stroke_width attribute) on points depending on distance to camera and then retrieve that attribute in python code instead of constant parameter(stroke_width). How can I read those point attributes in python?
Great video! Have some way to create outline path of object?
one word, damn
How to use the points color attribute to set the path color?
why you split to 2 different geo nodes instead of making in same place?
Thanks for this!
The reason DXF doesnt work is the Houdini exporter. it tries with lines and there are no lines with more than 2 points.
thanks
I think you've made a tiny mistake. In the line "data = 'M{} {} 'format(points[0].x(), points[1].y())" you used points[1] for the y-coordinate, while I think you intended to use points[0].y(). This error is of course not visible because of the high definition of the polylines.
Anyway, this was an awesome tutorial! It is exactly the topic that I needed covered in order to be able to produce graphics in Houdini that are drawable with a pen plotter.
Hey thanks for the tut. But same here, cannot import .ai files or .eps files. Any workaround?
Check that compressed is off on illustrator file save. And use CS6 version from drop down menu. It’s probably unnecessary but it’s safer to use older version to be sure.
Hey, great video! This doesn't work for me. Importing from illustrator to Houdini
Check that compressed is off on illustrator file save. And use CS6 version from drop down menu. It’s probably unnecessary but it’s safer to use older version to be sure.
4 years have passed and importing vector files still does not work without third party scripts or tools. Hah.