I need to interpolate values between those points with value greater than 0. I managed to use the attribute transfer node, which kind of works, but this solution doesn't seem much robust or precise.
I guess I should use the attribute interpolate node, or the vex function primuv(), but don't really understand how to set it up.
I attached the simple project file, any help appreciated.
primuv will interpolate the specified attr of points / vertices on this prim, based on the intrinsic uv of prim. Attribute Inpterpolate SOP is a integrated SOP that contain primuv function to interpolate specified attrs from source prim.
My English is not good, so I have no ability to explain that what is the intrinsic uv of a prim. May be there are some topics have talked about it already.
Hey Zeng Chen thanks a lot, but I could not manage to implement your solution.
I ended up doing this: 1) Cut the curve where the point pscale is different than 0. Each new prim has now a start and end point with pscale > 0. Middle points have pscale = 0 2)For each new primitive, fit01() the intrinsic UV of the middle points to the pscale max and min values of the ends point.
It was a little bit convoluted but seems to work. Probably there is a better and faster solution that I'm not aware of. Would love to see it
Thanks a lot again! I attached my solution if you want to critique it.