pelos Posted January 23, 2022 Share Posted January 23, 2022 while pointvop only run over points, is it possible for the point to find out what's the prim number belongs to, and then retrieve a attribute from the prim? i am currently making: 1) attributes in a curve 2) promoting the attributes to points 3) using those attributes, but now i have 3 loops over the geometry =( and i would like to optimize since will be a lot of curves/points, i would like to vopsop loop the point, find what's the Prim number that belongs to and retrieve the attribute from that prim. thanks guys optimize_vopsop.hip Quote Link to comment Share on other sites More sharing options...
animatrix Posted January 24, 2022 Share Posted January 24, 2022 Hi, You can do this by directly using the @primnum attribute in VEX. So you can use the same thing in VOPs. That will refer to the primitive using that point. In case of multiple prims, it should be the first one I think. In that case you can use the pointprims function. 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.