Hi. I want to set length parameter to $PR or $PT or use smth like point(“…..”, $PT, “….) or prim(”…..“, $PR, ”…..) but it doesn't work with variables.
What can I do to set length parm to some attribute value
Thanks
resample sop
5704 5 3- Wish
- Member
- 282 posts
- Joined: Jan. 2006
- Offline
- varomix
- Member
- 460 posts
- Joined: July 2005
- Offline
- Wish
- Member
- 282 posts
- Joined: Jan. 2006
- Offline
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
- Wish
- Member
- 282 posts
- Joined: Jan. 2006
- Offline
- Antoine Durr
- Member
- 321 posts
- Joined: July 2005
- Offline
WishIf you are trying to resample non-uniformly, i.e. control the length of each segment individually, then your best bet is to take your set of values (one value per segment) into CHOPs, and integrate the length via the area CHOP. This will effectively add each individual length, and the resulting curve will be the distance from one end of each point. Then take your fixed-interval resampled points and with a point() function position each point according to the value of the area CHOP for that given point. Oh, you'll need to normalize the result of the area CHOP (math CHOP divide by max value of area CHOP), so that the max value is 1. The point() function has a nice feature where you can give it non-integer point numbers, and it will interpolate between adjacent point. Thus if you resample the original curve with 100 segments, point() position 95.5 is halfway between points 95 and 96.
Ok. What about currnet primitive or current detail attributes?
-
- Quick Links