Masoud Posted May 18, 2020 Share Posted May 18, 2020 Hello; How can I retrieve a (ramp) attribute value (like the “curveu” attribute in "Resample SOP"), from some selected edges? I mean a (ramp pos) attribute value from 0 to 1, from the start of some selected edges to the end of that selection. Thanks for helping. Ramp.hip Quote Link to comment Share on other sites More sharing options...
Noobini Posted May 18, 2020 Share Posted May 18, 2020 (edited) sidefx labs>edgegroup_to_curve1>resample ? prolly need to attribtransfer back to orig geo... dunno if this suits you...note the other pts not on the curve will have curveu = 0 vu_Ramp.hiplc Edited May 18, 2020 by Noobini Quote Link to comment Share on other sites More sharing options...
Masoud Posted May 18, 2020 Author Share Posted May 18, 2020 Hi " Vusta ", Thank you for your reply. Your solution works, but I want to use the VEX functions... Quote Link to comment Share on other sites More sharing options...
Masoud Posted May 22, 2020 Author Share Posted May 22, 2020 Any idea? Quote Link to comment Share on other sites More sharing options...
Noobini Posted May 25, 2020 Share Posted May 25, 2020 one...better than nuthin' pig.hiplc Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 25, 2020 Share Posted May 25, 2020 expandpointgroup() would enroll points in the order you had them selected. int pts[] = expandpointgroup(0, 'loop'); int num = len(pts); foreach(int i; int pt; pts){ float u = i / float(num - 1); setpointattrib(0, 'u', pt, u, 'set'); } expand_group.hipnc 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.