Jump to content

Primuv of Point


Recommended Posts

Hi Joe,

you could simply set the xyzdist()-function to the first input, so it's searching on its own geometry stream:

int prim;
vector uvw;
xyzdist(0, v@P, prim, uvw);

v@uvw = uvw;

Alternatively, the resample node can output the "curveu" attribute. Just make sure to disable "maximum segment length" to avoid any changes on the curve.

Edited by konstantin magnus
Link to comment
Share on other sites

Thanks konstantin, thanks! Just concerned about what happens when multiple curves overlap. I hoped that this can be extracted from some kind of primitive intrinsic or any other way that does not involve a point/prim lookup.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...