how to copy things onto an edge of a poly curve?

   4861   6   2
User Avatar
Member
10 posts
Joined: June 2014
Offline
I wanna copy stuff on each edge of an poly curve and align to the normal of the edge instead of onto each point. Is there any way I can do that? It seems to me that houdini doesn't keep edge info as attribute. forgive me that I'm a newbe LOL
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
So you can add some points on each edge , for example do it with Resample SOP (be sure Resample by Polygon Edge is On !) , Then copy tour stuff on these points.

New generated points take Normal direction from start and end point of each edge and Copy SOP use this normals for orientation of each stuff !


Also if you wanna copy your stuff on each edge randomly , you can use Scatter SOP instead of Resample SOP :idea:
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Check this attached file 8)

Attachments:
JKCopy_on_Edges.hip (98.9 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
10 posts
Joined: June 2014
Offline
Joker386
Check this attached file 8)
Thank you So much!!!!! I really wanna learn from much more from you!
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Steven Zhang
Joker386
Check this attached file 8)
Thank you So much!!!!! I really wanna learn from much more from you!

:roll: :wink:
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
if you are using an attribVOP, you should be able to also use XYZDistance to return the closest point in a curve, and get any attribute from that location (position, U coordinate, normal, etc). In most cases, this may be also faster than resampling your reference curve and more precise
-G
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
grayOlorin
if you are using an attribVOP, you should be able to also use XYZDistance to return the closest point in a curve, and get any attribute from that location (position, U coordinate, normal, etc). In most cases, this may be also faster than resampling your reference curve and more precise

Yes , VEX is always faster than using SOP nodes , Also I think we should use For Loop too , because we need to compute multiple points on the Curve 8)
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
  • Quick Links