jacksprophet
jacksprophet
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Nested HDAs Oct. 26, 2020, 7:23 a.m.
Is there any way to nest HDAs? Or any other way to accomplish the same thing? Basically, what I am trying to do is something like this:
Curve From 2 Views Nov. 16, 2017, 11:30 a.m.
Konstantin Magnus
You could transfer the height of your side view curve to colors and flatten it.@Cd = @P.y; @P.y = 0;
Then let your top view curve shoot rays on the flattened side curve asking for the color to use it as its new height.vector pos; vector uv; intersect(1, @P, {0,0,1}, pos, uv); @P.y = primuv(1, "Cd", 0, uv);
Works like a charm. Big thanks to both of you. Much appreciated.
On a related note, I don't suppose there's a way to visualize the rays sent by intersect, sort like point trails?
Curve From 2 Views Nov. 15, 2017, 10:34 a.m.
I'm trying to make something similar to the Crv2View command in Rhino.
So I have this polygon curve:
And I want to move each point straight down in Y axis to line up with a NURBS curve, like so:
So I need to somehow find out what the Y position is on the NURBS curve at the appropriate X position. Basically I need to translate this pseudo-code into VEX:
Alas, I'm VEX-impaired so any help would be greatly appreciated.
Thanks.
So I have this polygon curve:
And I want to move each point straight down in Y axis to line up with a NURBS curve, like so:
So I need to somehow find out what the Y position is on the NURBS curve at the appropriate X position. Basically I need to translate this pseudo-code into VEX:
foreach(Curve1.point) {
Curve1.point.yposition = getYposition(Curve2, Curve1.point.xposition);
}
Alas, I'm VEX-impaired so any help would be greatly appreciated.
Thanks.