revelationsr Posted September 23, 2015 Share Posted September 23, 2015 Hi there. I have in my scene several curves. They are all criss crossing each other. I would like to have a point on a curve find the nearest point on another neighbouring curve. Then have a 25% chance connect the two with a third curve. Any ideas? Quote Link to comment Share on other sites More sharing options...
Guest tar Posted September 23, 2015 Share Posted September 23, 2015 Please upload your test file. This will clarify your question a lot. Thanks! Quote Link to comment Share on other sites More sharing options...
revelationsr Posted September 24, 2015 Author Share Posted September 24, 2015 No it wont really. It is just about 10 curves crossing over each other randomly. All I really need to know is if there is a function that can find the closest point on another curve. Then create a new curve that starts at the current point and ends at the closest point of the other curve. Cheers Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted September 24, 2015 Share Posted September 24, 2015 (edited) It should find closest existing point or just find closest location on a curve? EDIT: If the first one, check this EDIT2: Today you can probably solve all of this this using just attribWrangleSOP Edited September 24, 2015 by fântastîque Mântragorîè Quote Link to comment Share on other sites More sharing options...
revelationsr Posted September 24, 2015 Author Share Posted September 24, 2015 Yes basically. Then once that point is found then draw a curve between A and B Quote Link to comment Share on other sites More sharing options...
mestela Posted September 24, 2015 Share Posted September 24, 2015 This sorta thing? connect_curves_v01.hipnc (click to play) Create a random start point per line Get 30 closest points Filter that to only points that aren't on this prim Take first point from that list, create a line to it Quote Link to comment Share on other sites More sharing options...
revelationsr Posted September 24, 2015 Author Share Posted September 24, 2015 Oooo That looks like the kind of thing yes. I will have to have a look at that tomoorow morning. Quote Link to comment Share on other sites More sharing options...
revelationsr Posted September 25, 2015 Author Share Posted September 25, 2015 O shit son. You totally nailed it. I have already started to learn vex so I can translate that into what I need. But you have gotten me 90% of the way there. Thank you so much. I so owe you a drink! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.