how to get length of a curve?

   25283   3   0
User Avatar
Member
160 posts
Joined:
Offline
I want to duplicate a number of boxes along a curve every certain distance.
so i want to get the length of the curve,how to get it?
thanks
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
measure sop?
Houdini is great! O'right?
User Avatar
Member
10 posts
Joined: July 2006
Offline
You can get the length of a curve primitive with the arclen expression function. Example:
arclen(“../curve1”, 0, 0, 1)
You could also use a Resample SOP after the curve, choose the Maximum Segment Length option, specify a segment length, and use the resampled curve as a template geometry (second input) in the Copy SOP, using the box you wish to duplicate along the curve as the first input of the Copy SOP.
User Avatar
Member
160 posts
Joined:
Offline
Great! Thank you very much
  • Quick Links